@agoric/cosmic-proto 0.5.0-u19.2 → 0.5.0-u20.0
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/address-hooks.d.ts +4 -3
- package/dist/address-hooks.js +1 -217
- package/dist/address-hooks.js.map +1 -1
- package/dist/codegen/agoric/bundle.js +1 -51
- package/dist/codegen/agoric/lien/genesis.js +1 -143
- package/dist/codegen/agoric/lien/lien.js +1 -87
- package/dist/codegen/agoric/swingset/genesis.js +1 -181
- package/dist/codegen/agoric/swingset/msgs.js +1 -700
- package/dist/codegen/agoric/swingset/query.js +1 -356
- package/dist/codegen/agoric/swingset/swingset.js +1 -816
- package/dist/codegen/agoric/vbank/genesis.js +1 -82
- package/dist/codegen/agoric/vbank/msgs.js +1 -2
- package/dist/codegen/agoric/vbank/query.js +1 -222
- package/dist/codegen/agoric/vbank/vbank.js +1 -237
- package/dist/codegen/agoric/vibc/msgs.js +1 -127
- package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
- package/dist/codegen/agoric/vstorage/genesis.js +1 -138
- package/dist/codegen/agoric/vstorage/query.js +1 -441
- package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
- package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
- package/dist/codegen/amino/amino.js +1 -2
- package/dist/codegen/amino/bundle.js +1 -6
- package/dist/codegen/binary.js +1 -367
- package/dist/codegen/circle/bundle.d.ts +0 -506
- package/dist/codegen/circle/bundle.js +1 -40
- package/dist/codegen/circle/cctp/v1/attester.js +1 -63
- package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
- package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/events.js +1 -1612
- package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
- package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
- package/dist/codegen/circle/cctp/v1/message.js +1 -160
- package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
- package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
- package/dist/codegen/circle/cctp/v1/query.js +1 -2421
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
- package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
- package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
- package/dist/codegen/circle/cctp/v1/tx.d.ts +0 -998
- package/dist/codegen/circle/cctp/v1/tx.js +1 -3264
- package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
- package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
- package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
- package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
- package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
- package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
- package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
- package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
- package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
- package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
- package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
- package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
- package/dist/codegen/cosmos/bundle.js +1 -249
- package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
- package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
- package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
- package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
- package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
- package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
- package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
- package/dist/codegen/cosmos/group/v1/events.js +1 -696
- package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
- package/dist/codegen/cosmos/group/v1/query.js +1 -2096
- package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
- package/dist/codegen/cosmos/group/v1/types.js +1 -1387
- package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
- package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
- package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
- package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
- package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
- package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
- package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
- package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
- package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
- package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
- package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
- package/dist/codegen/cosmos_proto/bundle.js +1 -6
- package/dist/codegen/cosmos_proto/cosmos.js +1 -208
- package/dist/codegen/gogoproto/bundle.js +1 -6
- package/dist/codegen/gogoproto/gogo.js +1 -2
- package/dist/codegen/google/api/annotations.js +1 -2
- package/dist/codegen/google/api/http.js +1 -319
- package/dist/codegen/google/bundle.js +1 -17
- package/dist/codegen/google/protobuf/any.js +1 -77
- package/dist/codegen/google/protobuf/descriptor.js +1 -3421
- package/dist/codegen/google/protobuf/duration.js +1 -79
- package/dist/codegen/google/protobuf/empty.js +1 -50
- package/dist/codegen/google/protobuf/timestamp.js +1 -79
- package/dist/codegen/helpers.js +1 -196
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
- package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
- package/dist/codegen/ibc/bundle.js +1 -142
- package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
- package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
- package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
- package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
- package/dist/codegen/ibc/core/client/v1/client.js +1 -583
- package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
- package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
- package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
- package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
- package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
- package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
- package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
- package/dist/codegen/icq/bundle.js +1 -17
- package/dist/codegen/icq/v1/genesis.js +1 -78
- package/dist/codegen/icq/v1/icq.js +1 -83
- package/dist/codegen/icq/v1/packet.js +1 -270
- package/dist/codegen/icq/v1/query.js +1 -114
- package/dist/codegen/icq/v1/tx.js +1 -124
- package/dist/codegen/ics23/bundle.js +1 -6
- package/dist/codegen/index.js +1 -23
- package/dist/codegen/json-safe.js +1 -8
- package/dist/codegen/proofs.js +1 -1436
- package/dist/codegen/stride/bundle.js +1 -71
- package/dist/codegen/stride/epochs/genesis.js +1 -227
- package/dist/codegen/stride/epochs/query.js +1 -398
- package/dist/codegen/stride/records/callbacks.js +1 -136
- package/dist/codegen/stride/records/genesis.js +1 -186
- package/dist/codegen/stride/records/params.js +1 -50
- package/dist/codegen/stride/records/query.js +1 -1552
- package/dist/codegen/stride/records/records.js +1 -939
- package/dist/codegen/stride/stakedym/genesis.js +1 -312
- package/dist/codegen/stride/stakedym/query.js +1 -887
- package/dist/codegen/stride/stakedym/stakedym.js +1 -909
- package/dist/codegen/stride/stakedym/tx.js +1 -1661
- package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
- package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
- package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
- package/dist/codegen/stride/stakeibc/genesis.js +1 -135
- package/dist/codegen/stride/stakeibc/gov.js +1 -212
- package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
- package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
- package/dist/codegen/stride/stakeibc/packet.js +1 -113
- package/dist/codegen/stride/stakeibc/params.js +1 -317
- package/dist/codegen/stride/stakeibc/query.js +1 -1372
- package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
- package/dist/codegen/stride/stakeibc/tx.js +1 -3392
- package/dist/codegen/stride/stakeibc/validator.js +1 -170
- package/dist/codegen/stride/staketia/genesis.js +1 -312
- package/dist/codegen/stride/staketia/query.js +1 -887
- package/dist/codegen/stride/staketia/staketia.js +1 -819
- package/dist/codegen/stride/staketia/tx.js +1 -1671
- package/dist/codegen/tendermint/abci/types.d.ts +264 -692
- package/dist/codegen/tendermint/abci/types.js +1 -4434
- package/dist/codegen/tendermint/abci/types.js.map +1 -1
- package/dist/codegen/tendermint/bundle.d.ts +0 -272
- package/dist/codegen/tendermint/bundle.js +1 -42
- package/dist/codegen/tendermint/crypto/keys.js +1 -85
- package/dist/codegen/tendermint/crypto/proof.js +1 -409
- package/dist/codegen/tendermint/libs/bits/types.js +1 -94
- package/dist/codegen/tendermint/p2p/types.js +1 -506
- package/dist/codegen/tendermint/types/block.js +1 -119
- package/dist/codegen/tendermint/types/evidence.js +1 -415
- package/dist/codegen/tendermint/types/params.js +1 -529
- package/dist/codegen/tendermint/types/types.js +1 -1534
- package/dist/codegen/tendermint/types/validator.js +1 -299
- package/dist/codegen/tendermint/version/types.js +1 -155
- package/dist/codegen/utf8.js +1 -138
- package/dist/codegen/varint.js +1 -409
- package/dist/helpers.js +1 -22
- package/dist/index.js +1 -6
- package/package.json +12 -10
|
@@ -1,2073 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { MemberRequest, VoteOption, ProposalExecutorResult, voteOptionFromJSON, voteOptionToJSON, proposalExecutorResultFromJSON, proposalExecutorResultToJSON, } from './types.js';
|
|
3
|
-
import { Any } from '../../../google/protobuf/any.js';
|
|
4
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
5
|
-
import { isSet } from '../../../helpers.js';
|
|
6
|
-
import {} from '../../../json-safe.js';
|
|
7
|
-
/** Exec defines modes of execution of a proposal on creation or on new vote. */
|
|
8
|
-
export var Exec;
|
|
9
|
-
(function (Exec) {
|
|
10
|
-
/**
|
|
11
|
-
* EXEC_UNSPECIFIED - An empty value means that there should be a separate
|
|
12
|
-
* MsgExec request for the proposal to execute.
|
|
13
|
-
*/
|
|
14
|
-
Exec[Exec["EXEC_UNSPECIFIED"] = 0] = "EXEC_UNSPECIFIED";
|
|
15
|
-
/**
|
|
16
|
-
* EXEC_TRY - Try to execute the proposal immediately.
|
|
17
|
-
* If the proposal is not allowed per the DecisionPolicy,
|
|
18
|
-
* the proposal will still be open and could
|
|
19
|
-
* be executed at a later point.
|
|
20
|
-
*/
|
|
21
|
-
Exec[Exec["EXEC_TRY"] = 1] = "EXEC_TRY";
|
|
22
|
-
Exec[Exec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
-
})(Exec || (Exec = {}));
|
|
24
|
-
export const ExecSDKType = Exec;
|
|
25
|
-
export function execFromJSON(object) {
|
|
26
|
-
switch (object) {
|
|
27
|
-
case 0:
|
|
28
|
-
case 'EXEC_UNSPECIFIED':
|
|
29
|
-
return Exec.EXEC_UNSPECIFIED;
|
|
30
|
-
case 1:
|
|
31
|
-
case 'EXEC_TRY':
|
|
32
|
-
return Exec.EXEC_TRY;
|
|
33
|
-
case -1:
|
|
34
|
-
case 'UNRECOGNIZED':
|
|
35
|
-
default:
|
|
36
|
-
return Exec.UNRECOGNIZED;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
export function execToJSON(object) {
|
|
40
|
-
switch (object) {
|
|
41
|
-
case Exec.EXEC_UNSPECIFIED:
|
|
42
|
-
return 'EXEC_UNSPECIFIED';
|
|
43
|
-
case Exec.EXEC_TRY:
|
|
44
|
-
return 'EXEC_TRY';
|
|
45
|
-
case Exec.UNRECOGNIZED:
|
|
46
|
-
default:
|
|
47
|
-
return 'UNRECOGNIZED';
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function createBaseMsgCreateGroup() {
|
|
51
|
-
return {
|
|
52
|
-
admin: '',
|
|
53
|
-
members: [],
|
|
54
|
-
metadata: '',
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export const MsgCreateGroup = {
|
|
58
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroup',
|
|
59
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
60
|
-
if (message.admin !== '') {
|
|
61
|
-
writer.uint32(10).string(message.admin);
|
|
62
|
-
}
|
|
63
|
-
for (const v of message.members) {
|
|
64
|
-
MemberRequest.encode(v, writer.uint32(18).fork()).ldelim();
|
|
65
|
-
}
|
|
66
|
-
if (message.metadata !== '') {
|
|
67
|
-
writer.uint32(26).string(message.metadata);
|
|
68
|
-
}
|
|
69
|
-
return writer;
|
|
70
|
-
},
|
|
71
|
-
decode(input, length) {
|
|
72
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
73
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
-
const message = createBaseMsgCreateGroup();
|
|
75
|
-
while (reader.pos < end) {
|
|
76
|
-
const tag = reader.uint32();
|
|
77
|
-
switch (tag >>> 3) {
|
|
78
|
-
case 1:
|
|
79
|
-
message.admin = reader.string();
|
|
80
|
-
break;
|
|
81
|
-
case 2:
|
|
82
|
-
message.members.push(MemberRequest.decode(reader, reader.uint32()));
|
|
83
|
-
break;
|
|
84
|
-
case 3:
|
|
85
|
-
message.metadata = reader.string();
|
|
86
|
-
break;
|
|
87
|
-
default:
|
|
88
|
-
reader.skipType(tag & 7);
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return message;
|
|
93
|
-
},
|
|
94
|
-
fromJSON(object) {
|
|
95
|
-
return {
|
|
96
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
97
|
-
members: Array.isArray(object?.members)
|
|
98
|
-
? object.members.map((e) => MemberRequest.fromJSON(e))
|
|
99
|
-
: [],
|
|
100
|
-
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
toJSON(message) {
|
|
104
|
-
const obj = {};
|
|
105
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
106
|
-
if (message.members) {
|
|
107
|
-
obj.members = message.members.map(e => e ? MemberRequest.toJSON(e) : undefined);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
obj.members = [];
|
|
111
|
-
}
|
|
112
|
-
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
113
|
-
return obj;
|
|
114
|
-
},
|
|
115
|
-
fromPartial(object) {
|
|
116
|
-
const message = createBaseMsgCreateGroup();
|
|
117
|
-
message.admin = object.admin ?? '';
|
|
118
|
-
message.members =
|
|
119
|
-
object.members?.map(e => MemberRequest.fromPartial(e)) || [];
|
|
120
|
-
message.metadata = object.metadata ?? '';
|
|
121
|
-
return message;
|
|
122
|
-
},
|
|
123
|
-
fromProtoMsg(message) {
|
|
124
|
-
return MsgCreateGroup.decode(message.value);
|
|
125
|
-
},
|
|
126
|
-
toProto(message) {
|
|
127
|
-
return MsgCreateGroup.encode(message).finish();
|
|
128
|
-
},
|
|
129
|
-
toProtoMsg(message) {
|
|
130
|
-
return {
|
|
131
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroup',
|
|
132
|
-
value: MsgCreateGroup.encode(message).finish(),
|
|
133
|
-
};
|
|
134
|
-
},
|
|
135
|
-
};
|
|
136
|
-
function createBaseMsgCreateGroupResponse() {
|
|
137
|
-
return {
|
|
138
|
-
groupId: BigInt(0),
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
export const MsgCreateGroupResponse = {
|
|
142
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupResponse',
|
|
143
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
144
|
-
if (message.groupId !== BigInt(0)) {
|
|
145
|
-
writer.uint32(8).uint64(message.groupId);
|
|
146
|
-
}
|
|
147
|
-
return writer;
|
|
148
|
-
},
|
|
149
|
-
decode(input, length) {
|
|
150
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
151
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
|
-
const message = createBaseMsgCreateGroupResponse();
|
|
153
|
-
while (reader.pos < end) {
|
|
154
|
-
const tag = reader.uint32();
|
|
155
|
-
switch (tag >>> 3) {
|
|
156
|
-
case 1:
|
|
157
|
-
message.groupId = reader.uint64();
|
|
158
|
-
break;
|
|
159
|
-
default:
|
|
160
|
-
reader.skipType(tag & 7);
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return message;
|
|
165
|
-
},
|
|
166
|
-
fromJSON(object) {
|
|
167
|
-
return {
|
|
168
|
-
groupId: isSet(object.groupId)
|
|
169
|
-
? BigInt(object.groupId.toString())
|
|
170
|
-
: BigInt(0),
|
|
171
|
-
};
|
|
172
|
-
},
|
|
173
|
-
toJSON(message) {
|
|
174
|
-
const obj = {};
|
|
175
|
-
message.groupId !== undefined &&
|
|
176
|
-
(obj.groupId = (message.groupId || BigInt(0)).toString());
|
|
177
|
-
return obj;
|
|
178
|
-
},
|
|
179
|
-
fromPartial(object) {
|
|
180
|
-
const message = createBaseMsgCreateGroupResponse();
|
|
181
|
-
message.groupId =
|
|
182
|
-
object.groupId !== undefined && object.groupId !== null
|
|
183
|
-
? BigInt(object.groupId.toString())
|
|
184
|
-
: BigInt(0);
|
|
185
|
-
return message;
|
|
186
|
-
},
|
|
187
|
-
fromProtoMsg(message) {
|
|
188
|
-
return MsgCreateGroupResponse.decode(message.value);
|
|
189
|
-
},
|
|
190
|
-
toProto(message) {
|
|
191
|
-
return MsgCreateGroupResponse.encode(message).finish();
|
|
192
|
-
},
|
|
193
|
-
toProtoMsg(message) {
|
|
194
|
-
return {
|
|
195
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupResponse',
|
|
196
|
-
value: MsgCreateGroupResponse.encode(message).finish(),
|
|
197
|
-
};
|
|
198
|
-
},
|
|
199
|
-
};
|
|
200
|
-
function createBaseMsgUpdateGroupMembers() {
|
|
201
|
-
return {
|
|
202
|
-
admin: '',
|
|
203
|
-
groupId: BigInt(0),
|
|
204
|
-
memberUpdates: [],
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
export const MsgUpdateGroupMembers = {
|
|
208
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMembers',
|
|
209
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
210
|
-
if (message.admin !== '') {
|
|
211
|
-
writer.uint32(10).string(message.admin);
|
|
212
|
-
}
|
|
213
|
-
if (message.groupId !== BigInt(0)) {
|
|
214
|
-
writer.uint32(16).uint64(message.groupId);
|
|
215
|
-
}
|
|
216
|
-
for (const v of message.memberUpdates) {
|
|
217
|
-
MemberRequest.encode(v, writer.uint32(26).fork()).ldelim();
|
|
218
|
-
}
|
|
219
|
-
return writer;
|
|
220
|
-
},
|
|
221
|
-
decode(input, length) {
|
|
222
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
223
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
224
|
-
const message = createBaseMsgUpdateGroupMembers();
|
|
225
|
-
while (reader.pos < end) {
|
|
226
|
-
const tag = reader.uint32();
|
|
227
|
-
switch (tag >>> 3) {
|
|
228
|
-
case 1:
|
|
229
|
-
message.admin = reader.string();
|
|
230
|
-
break;
|
|
231
|
-
case 2:
|
|
232
|
-
message.groupId = reader.uint64();
|
|
233
|
-
break;
|
|
234
|
-
case 3:
|
|
235
|
-
message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32()));
|
|
236
|
-
break;
|
|
237
|
-
default:
|
|
238
|
-
reader.skipType(tag & 7);
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return message;
|
|
243
|
-
},
|
|
244
|
-
fromJSON(object) {
|
|
245
|
-
return {
|
|
246
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
247
|
-
groupId: isSet(object.groupId)
|
|
248
|
-
? BigInt(object.groupId.toString())
|
|
249
|
-
: BigInt(0),
|
|
250
|
-
memberUpdates: Array.isArray(object?.memberUpdates)
|
|
251
|
-
? object.memberUpdates.map((e) => MemberRequest.fromJSON(e))
|
|
252
|
-
: [],
|
|
253
|
-
};
|
|
254
|
-
},
|
|
255
|
-
toJSON(message) {
|
|
256
|
-
const obj = {};
|
|
257
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
258
|
-
message.groupId !== undefined &&
|
|
259
|
-
(obj.groupId = (message.groupId || BigInt(0)).toString());
|
|
260
|
-
if (message.memberUpdates) {
|
|
261
|
-
obj.memberUpdates = message.memberUpdates.map(e => e ? MemberRequest.toJSON(e) : undefined);
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
obj.memberUpdates = [];
|
|
265
|
-
}
|
|
266
|
-
return obj;
|
|
267
|
-
},
|
|
268
|
-
fromPartial(object) {
|
|
269
|
-
const message = createBaseMsgUpdateGroupMembers();
|
|
270
|
-
message.admin = object.admin ?? '';
|
|
271
|
-
message.groupId =
|
|
272
|
-
object.groupId !== undefined && object.groupId !== null
|
|
273
|
-
? BigInt(object.groupId.toString())
|
|
274
|
-
: BigInt(0);
|
|
275
|
-
message.memberUpdates =
|
|
276
|
-
object.memberUpdates?.map(e => MemberRequest.fromPartial(e)) || [];
|
|
277
|
-
return message;
|
|
278
|
-
},
|
|
279
|
-
fromProtoMsg(message) {
|
|
280
|
-
return MsgUpdateGroupMembers.decode(message.value);
|
|
281
|
-
},
|
|
282
|
-
toProto(message) {
|
|
283
|
-
return MsgUpdateGroupMembers.encode(message).finish();
|
|
284
|
-
},
|
|
285
|
-
toProtoMsg(message) {
|
|
286
|
-
return {
|
|
287
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMembers',
|
|
288
|
-
value: MsgUpdateGroupMembers.encode(message).finish(),
|
|
289
|
-
};
|
|
290
|
-
},
|
|
291
|
-
};
|
|
292
|
-
function createBaseMsgUpdateGroupMembersResponse() {
|
|
293
|
-
return {};
|
|
294
|
-
}
|
|
295
|
-
export const MsgUpdateGroupMembersResponse = {
|
|
296
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMembersResponse',
|
|
297
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
298
|
-
return writer;
|
|
299
|
-
},
|
|
300
|
-
decode(input, length) {
|
|
301
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
302
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
303
|
-
const message = createBaseMsgUpdateGroupMembersResponse();
|
|
304
|
-
while (reader.pos < end) {
|
|
305
|
-
const tag = reader.uint32();
|
|
306
|
-
switch (tag >>> 3) {
|
|
307
|
-
default:
|
|
308
|
-
reader.skipType(tag & 7);
|
|
309
|
-
break;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
return message;
|
|
313
|
-
},
|
|
314
|
-
fromJSON(_) {
|
|
315
|
-
return {};
|
|
316
|
-
},
|
|
317
|
-
toJSON(_) {
|
|
318
|
-
const obj = {};
|
|
319
|
-
return obj;
|
|
320
|
-
},
|
|
321
|
-
fromPartial(_) {
|
|
322
|
-
const message = createBaseMsgUpdateGroupMembersResponse();
|
|
323
|
-
return message;
|
|
324
|
-
},
|
|
325
|
-
fromProtoMsg(message) {
|
|
326
|
-
return MsgUpdateGroupMembersResponse.decode(message.value);
|
|
327
|
-
},
|
|
328
|
-
toProto(message) {
|
|
329
|
-
return MsgUpdateGroupMembersResponse.encode(message).finish();
|
|
330
|
-
},
|
|
331
|
-
toProtoMsg(message) {
|
|
332
|
-
return {
|
|
333
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMembersResponse',
|
|
334
|
-
value: MsgUpdateGroupMembersResponse.encode(message).finish(),
|
|
335
|
-
};
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
function createBaseMsgUpdateGroupAdmin() {
|
|
339
|
-
return {
|
|
340
|
-
admin: '',
|
|
341
|
-
groupId: BigInt(0),
|
|
342
|
-
newAdmin: '',
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
export const MsgUpdateGroupAdmin = {
|
|
346
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupAdmin',
|
|
347
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
348
|
-
if (message.admin !== '') {
|
|
349
|
-
writer.uint32(10).string(message.admin);
|
|
350
|
-
}
|
|
351
|
-
if (message.groupId !== BigInt(0)) {
|
|
352
|
-
writer.uint32(16).uint64(message.groupId);
|
|
353
|
-
}
|
|
354
|
-
if (message.newAdmin !== '') {
|
|
355
|
-
writer.uint32(26).string(message.newAdmin);
|
|
356
|
-
}
|
|
357
|
-
return writer;
|
|
358
|
-
},
|
|
359
|
-
decode(input, length) {
|
|
360
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
361
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
362
|
-
const message = createBaseMsgUpdateGroupAdmin();
|
|
363
|
-
while (reader.pos < end) {
|
|
364
|
-
const tag = reader.uint32();
|
|
365
|
-
switch (tag >>> 3) {
|
|
366
|
-
case 1:
|
|
367
|
-
message.admin = reader.string();
|
|
368
|
-
break;
|
|
369
|
-
case 2:
|
|
370
|
-
message.groupId = reader.uint64();
|
|
371
|
-
break;
|
|
372
|
-
case 3:
|
|
373
|
-
message.newAdmin = reader.string();
|
|
374
|
-
break;
|
|
375
|
-
default:
|
|
376
|
-
reader.skipType(tag & 7);
|
|
377
|
-
break;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
return message;
|
|
381
|
-
},
|
|
382
|
-
fromJSON(object) {
|
|
383
|
-
return {
|
|
384
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
385
|
-
groupId: isSet(object.groupId)
|
|
386
|
-
? BigInt(object.groupId.toString())
|
|
387
|
-
: BigInt(0),
|
|
388
|
-
newAdmin: isSet(object.newAdmin) ? String(object.newAdmin) : '',
|
|
389
|
-
};
|
|
390
|
-
},
|
|
391
|
-
toJSON(message) {
|
|
392
|
-
const obj = {};
|
|
393
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
394
|
-
message.groupId !== undefined &&
|
|
395
|
-
(obj.groupId = (message.groupId || BigInt(0)).toString());
|
|
396
|
-
message.newAdmin !== undefined && (obj.newAdmin = message.newAdmin);
|
|
397
|
-
return obj;
|
|
398
|
-
},
|
|
399
|
-
fromPartial(object) {
|
|
400
|
-
const message = createBaseMsgUpdateGroupAdmin();
|
|
401
|
-
message.admin = object.admin ?? '';
|
|
402
|
-
message.groupId =
|
|
403
|
-
object.groupId !== undefined && object.groupId !== null
|
|
404
|
-
? BigInt(object.groupId.toString())
|
|
405
|
-
: BigInt(0);
|
|
406
|
-
message.newAdmin = object.newAdmin ?? '';
|
|
407
|
-
return message;
|
|
408
|
-
},
|
|
409
|
-
fromProtoMsg(message) {
|
|
410
|
-
return MsgUpdateGroupAdmin.decode(message.value);
|
|
411
|
-
},
|
|
412
|
-
toProto(message) {
|
|
413
|
-
return MsgUpdateGroupAdmin.encode(message).finish();
|
|
414
|
-
},
|
|
415
|
-
toProtoMsg(message) {
|
|
416
|
-
return {
|
|
417
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupAdmin',
|
|
418
|
-
value: MsgUpdateGroupAdmin.encode(message).finish(),
|
|
419
|
-
};
|
|
420
|
-
},
|
|
421
|
-
};
|
|
422
|
-
function createBaseMsgUpdateGroupAdminResponse() {
|
|
423
|
-
return {};
|
|
424
|
-
}
|
|
425
|
-
export const MsgUpdateGroupAdminResponse = {
|
|
426
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupAdminResponse',
|
|
427
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
428
|
-
return writer;
|
|
429
|
-
},
|
|
430
|
-
decode(input, length) {
|
|
431
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
432
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
433
|
-
const message = createBaseMsgUpdateGroupAdminResponse();
|
|
434
|
-
while (reader.pos < end) {
|
|
435
|
-
const tag = reader.uint32();
|
|
436
|
-
switch (tag >>> 3) {
|
|
437
|
-
default:
|
|
438
|
-
reader.skipType(tag & 7);
|
|
439
|
-
break;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
return message;
|
|
443
|
-
},
|
|
444
|
-
fromJSON(_) {
|
|
445
|
-
return {};
|
|
446
|
-
},
|
|
447
|
-
toJSON(_) {
|
|
448
|
-
const obj = {};
|
|
449
|
-
return obj;
|
|
450
|
-
},
|
|
451
|
-
fromPartial(_) {
|
|
452
|
-
const message = createBaseMsgUpdateGroupAdminResponse();
|
|
453
|
-
return message;
|
|
454
|
-
},
|
|
455
|
-
fromProtoMsg(message) {
|
|
456
|
-
return MsgUpdateGroupAdminResponse.decode(message.value);
|
|
457
|
-
},
|
|
458
|
-
toProto(message) {
|
|
459
|
-
return MsgUpdateGroupAdminResponse.encode(message).finish();
|
|
460
|
-
},
|
|
461
|
-
toProtoMsg(message) {
|
|
462
|
-
return {
|
|
463
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupAdminResponse',
|
|
464
|
-
value: MsgUpdateGroupAdminResponse.encode(message).finish(),
|
|
465
|
-
};
|
|
466
|
-
},
|
|
467
|
-
};
|
|
468
|
-
function createBaseMsgUpdateGroupMetadata() {
|
|
469
|
-
return {
|
|
470
|
-
admin: '',
|
|
471
|
-
groupId: BigInt(0),
|
|
472
|
-
metadata: '',
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
export const MsgUpdateGroupMetadata = {
|
|
476
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMetadata',
|
|
477
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
478
|
-
if (message.admin !== '') {
|
|
479
|
-
writer.uint32(10).string(message.admin);
|
|
480
|
-
}
|
|
481
|
-
if (message.groupId !== BigInt(0)) {
|
|
482
|
-
writer.uint32(16).uint64(message.groupId);
|
|
483
|
-
}
|
|
484
|
-
if (message.metadata !== '') {
|
|
485
|
-
writer.uint32(26).string(message.metadata);
|
|
486
|
-
}
|
|
487
|
-
return writer;
|
|
488
|
-
},
|
|
489
|
-
decode(input, length) {
|
|
490
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
491
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
492
|
-
const message = createBaseMsgUpdateGroupMetadata();
|
|
493
|
-
while (reader.pos < end) {
|
|
494
|
-
const tag = reader.uint32();
|
|
495
|
-
switch (tag >>> 3) {
|
|
496
|
-
case 1:
|
|
497
|
-
message.admin = reader.string();
|
|
498
|
-
break;
|
|
499
|
-
case 2:
|
|
500
|
-
message.groupId = reader.uint64();
|
|
501
|
-
break;
|
|
502
|
-
case 3:
|
|
503
|
-
message.metadata = reader.string();
|
|
504
|
-
break;
|
|
505
|
-
default:
|
|
506
|
-
reader.skipType(tag & 7);
|
|
507
|
-
break;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
return message;
|
|
511
|
-
},
|
|
512
|
-
fromJSON(object) {
|
|
513
|
-
return {
|
|
514
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
515
|
-
groupId: isSet(object.groupId)
|
|
516
|
-
? BigInt(object.groupId.toString())
|
|
517
|
-
: BigInt(0),
|
|
518
|
-
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
519
|
-
};
|
|
520
|
-
},
|
|
521
|
-
toJSON(message) {
|
|
522
|
-
const obj = {};
|
|
523
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
524
|
-
message.groupId !== undefined &&
|
|
525
|
-
(obj.groupId = (message.groupId || BigInt(0)).toString());
|
|
526
|
-
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
527
|
-
return obj;
|
|
528
|
-
},
|
|
529
|
-
fromPartial(object) {
|
|
530
|
-
const message = createBaseMsgUpdateGroupMetadata();
|
|
531
|
-
message.admin = object.admin ?? '';
|
|
532
|
-
message.groupId =
|
|
533
|
-
object.groupId !== undefined && object.groupId !== null
|
|
534
|
-
? BigInt(object.groupId.toString())
|
|
535
|
-
: BigInt(0);
|
|
536
|
-
message.metadata = object.metadata ?? '';
|
|
537
|
-
return message;
|
|
538
|
-
},
|
|
539
|
-
fromProtoMsg(message) {
|
|
540
|
-
return MsgUpdateGroupMetadata.decode(message.value);
|
|
541
|
-
},
|
|
542
|
-
toProto(message) {
|
|
543
|
-
return MsgUpdateGroupMetadata.encode(message).finish();
|
|
544
|
-
},
|
|
545
|
-
toProtoMsg(message) {
|
|
546
|
-
return {
|
|
547
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMetadata',
|
|
548
|
-
value: MsgUpdateGroupMetadata.encode(message).finish(),
|
|
549
|
-
};
|
|
550
|
-
},
|
|
551
|
-
};
|
|
552
|
-
function createBaseMsgUpdateGroupMetadataResponse() {
|
|
553
|
-
return {};
|
|
554
|
-
}
|
|
555
|
-
export const MsgUpdateGroupMetadataResponse = {
|
|
556
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMetadataResponse',
|
|
557
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
558
|
-
return writer;
|
|
559
|
-
},
|
|
560
|
-
decode(input, length) {
|
|
561
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
562
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
563
|
-
const message = createBaseMsgUpdateGroupMetadataResponse();
|
|
564
|
-
while (reader.pos < end) {
|
|
565
|
-
const tag = reader.uint32();
|
|
566
|
-
switch (tag >>> 3) {
|
|
567
|
-
default:
|
|
568
|
-
reader.skipType(tag & 7);
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
return message;
|
|
573
|
-
},
|
|
574
|
-
fromJSON(_) {
|
|
575
|
-
return {};
|
|
576
|
-
},
|
|
577
|
-
toJSON(_) {
|
|
578
|
-
const obj = {};
|
|
579
|
-
return obj;
|
|
580
|
-
},
|
|
581
|
-
fromPartial(_) {
|
|
582
|
-
const message = createBaseMsgUpdateGroupMetadataResponse();
|
|
583
|
-
return message;
|
|
584
|
-
},
|
|
585
|
-
fromProtoMsg(message) {
|
|
586
|
-
return MsgUpdateGroupMetadataResponse.decode(message.value);
|
|
587
|
-
},
|
|
588
|
-
toProto(message) {
|
|
589
|
-
return MsgUpdateGroupMetadataResponse.encode(message).finish();
|
|
590
|
-
},
|
|
591
|
-
toProtoMsg(message) {
|
|
592
|
-
return {
|
|
593
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupMetadataResponse',
|
|
594
|
-
value: MsgUpdateGroupMetadataResponse.encode(message).finish(),
|
|
595
|
-
};
|
|
596
|
-
},
|
|
597
|
-
};
|
|
598
|
-
function createBaseMsgCreateGroupPolicy() {
|
|
599
|
-
return {
|
|
600
|
-
admin: '',
|
|
601
|
-
groupId: BigInt(0),
|
|
602
|
-
metadata: '',
|
|
603
|
-
decisionPolicy: undefined,
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
export const MsgCreateGroupPolicy = {
|
|
607
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupPolicy',
|
|
608
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
609
|
-
if (message.admin !== '') {
|
|
610
|
-
writer.uint32(10).string(message.admin);
|
|
611
|
-
}
|
|
612
|
-
if (message.groupId !== BigInt(0)) {
|
|
613
|
-
writer.uint32(16).uint64(message.groupId);
|
|
614
|
-
}
|
|
615
|
-
if (message.metadata !== '') {
|
|
616
|
-
writer.uint32(26).string(message.metadata);
|
|
617
|
-
}
|
|
618
|
-
if (message.decisionPolicy !== undefined) {
|
|
619
|
-
Any.encode(message.decisionPolicy, writer.uint32(34).fork()).ldelim();
|
|
620
|
-
}
|
|
621
|
-
return writer;
|
|
622
|
-
},
|
|
623
|
-
decode(input, length) {
|
|
624
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
625
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
626
|
-
const message = createBaseMsgCreateGroupPolicy();
|
|
627
|
-
while (reader.pos < end) {
|
|
628
|
-
const tag = reader.uint32();
|
|
629
|
-
switch (tag >>> 3) {
|
|
630
|
-
case 1:
|
|
631
|
-
message.admin = reader.string();
|
|
632
|
-
break;
|
|
633
|
-
case 2:
|
|
634
|
-
message.groupId = reader.uint64();
|
|
635
|
-
break;
|
|
636
|
-
case 3:
|
|
637
|
-
message.metadata = reader.string();
|
|
638
|
-
break;
|
|
639
|
-
case 4:
|
|
640
|
-
message.decisionPolicy =
|
|
641
|
-
Cosmos_groupv1DecisionPolicy_InterfaceDecoder(reader);
|
|
642
|
-
break;
|
|
643
|
-
default:
|
|
644
|
-
reader.skipType(tag & 7);
|
|
645
|
-
break;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
return message;
|
|
649
|
-
},
|
|
650
|
-
fromJSON(object) {
|
|
651
|
-
return {
|
|
652
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
653
|
-
groupId: isSet(object.groupId)
|
|
654
|
-
? BigInt(object.groupId.toString())
|
|
655
|
-
: BigInt(0),
|
|
656
|
-
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
657
|
-
decisionPolicy: isSet(object.decisionPolicy)
|
|
658
|
-
? Any.fromJSON(object.decisionPolicy)
|
|
659
|
-
: undefined,
|
|
660
|
-
};
|
|
661
|
-
},
|
|
662
|
-
toJSON(message) {
|
|
663
|
-
const obj = {};
|
|
664
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
665
|
-
message.groupId !== undefined &&
|
|
666
|
-
(obj.groupId = (message.groupId || BigInt(0)).toString());
|
|
667
|
-
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
668
|
-
message.decisionPolicy !== undefined &&
|
|
669
|
-
(obj.decisionPolicy = message.decisionPolicy
|
|
670
|
-
? Any.toJSON(message.decisionPolicy)
|
|
671
|
-
: undefined);
|
|
672
|
-
return obj;
|
|
673
|
-
},
|
|
674
|
-
fromPartial(object) {
|
|
675
|
-
const message = createBaseMsgCreateGroupPolicy();
|
|
676
|
-
message.admin = object.admin ?? '';
|
|
677
|
-
message.groupId =
|
|
678
|
-
object.groupId !== undefined && object.groupId !== null
|
|
679
|
-
? BigInt(object.groupId.toString())
|
|
680
|
-
: BigInt(0);
|
|
681
|
-
message.metadata = object.metadata ?? '';
|
|
682
|
-
message.decisionPolicy =
|
|
683
|
-
object.decisionPolicy !== undefined && object.decisionPolicy !== null
|
|
684
|
-
? Any.fromPartial(object.decisionPolicy)
|
|
685
|
-
: undefined;
|
|
686
|
-
return message;
|
|
687
|
-
},
|
|
688
|
-
fromProtoMsg(message) {
|
|
689
|
-
return MsgCreateGroupPolicy.decode(message.value);
|
|
690
|
-
},
|
|
691
|
-
toProto(message) {
|
|
692
|
-
return MsgCreateGroupPolicy.encode(message).finish();
|
|
693
|
-
},
|
|
694
|
-
toProtoMsg(message) {
|
|
695
|
-
return {
|
|
696
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupPolicy',
|
|
697
|
-
value: MsgCreateGroupPolicy.encode(message).finish(),
|
|
698
|
-
};
|
|
699
|
-
},
|
|
700
|
-
};
|
|
701
|
-
function createBaseMsgCreateGroupPolicyResponse() {
|
|
702
|
-
return {
|
|
703
|
-
address: '',
|
|
704
|
-
};
|
|
705
|
-
}
|
|
706
|
-
export const MsgCreateGroupPolicyResponse = {
|
|
707
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupPolicyResponse',
|
|
708
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
709
|
-
if (message.address !== '') {
|
|
710
|
-
writer.uint32(10).string(message.address);
|
|
711
|
-
}
|
|
712
|
-
return writer;
|
|
713
|
-
},
|
|
714
|
-
decode(input, length) {
|
|
715
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
716
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
717
|
-
const message = createBaseMsgCreateGroupPolicyResponse();
|
|
718
|
-
while (reader.pos < end) {
|
|
719
|
-
const tag = reader.uint32();
|
|
720
|
-
switch (tag >>> 3) {
|
|
721
|
-
case 1:
|
|
722
|
-
message.address = reader.string();
|
|
723
|
-
break;
|
|
724
|
-
default:
|
|
725
|
-
reader.skipType(tag & 7);
|
|
726
|
-
break;
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
return message;
|
|
730
|
-
},
|
|
731
|
-
fromJSON(object) {
|
|
732
|
-
return {
|
|
733
|
-
address: isSet(object.address) ? String(object.address) : '',
|
|
734
|
-
};
|
|
735
|
-
},
|
|
736
|
-
toJSON(message) {
|
|
737
|
-
const obj = {};
|
|
738
|
-
message.address !== undefined && (obj.address = message.address);
|
|
739
|
-
return obj;
|
|
740
|
-
},
|
|
741
|
-
fromPartial(object) {
|
|
742
|
-
const message = createBaseMsgCreateGroupPolicyResponse();
|
|
743
|
-
message.address = object.address ?? '';
|
|
744
|
-
return message;
|
|
745
|
-
},
|
|
746
|
-
fromProtoMsg(message) {
|
|
747
|
-
return MsgCreateGroupPolicyResponse.decode(message.value);
|
|
748
|
-
},
|
|
749
|
-
toProto(message) {
|
|
750
|
-
return MsgCreateGroupPolicyResponse.encode(message).finish();
|
|
751
|
-
},
|
|
752
|
-
toProtoMsg(message) {
|
|
753
|
-
return {
|
|
754
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupPolicyResponse',
|
|
755
|
-
value: MsgCreateGroupPolicyResponse.encode(message).finish(),
|
|
756
|
-
};
|
|
757
|
-
},
|
|
758
|
-
};
|
|
759
|
-
function createBaseMsgUpdateGroupPolicyAdmin() {
|
|
760
|
-
return {
|
|
761
|
-
admin: '',
|
|
762
|
-
groupPolicyAddress: '',
|
|
763
|
-
newAdmin: '',
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
export const MsgUpdateGroupPolicyAdmin = {
|
|
767
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyAdmin',
|
|
768
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
769
|
-
if (message.admin !== '') {
|
|
770
|
-
writer.uint32(10).string(message.admin);
|
|
771
|
-
}
|
|
772
|
-
if (message.groupPolicyAddress !== '') {
|
|
773
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
774
|
-
}
|
|
775
|
-
if (message.newAdmin !== '') {
|
|
776
|
-
writer.uint32(26).string(message.newAdmin);
|
|
777
|
-
}
|
|
778
|
-
return writer;
|
|
779
|
-
},
|
|
780
|
-
decode(input, length) {
|
|
781
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
782
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
783
|
-
const message = createBaseMsgUpdateGroupPolicyAdmin();
|
|
784
|
-
while (reader.pos < end) {
|
|
785
|
-
const tag = reader.uint32();
|
|
786
|
-
switch (tag >>> 3) {
|
|
787
|
-
case 1:
|
|
788
|
-
message.admin = reader.string();
|
|
789
|
-
break;
|
|
790
|
-
case 2:
|
|
791
|
-
message.groupPolicyAddress = reader.string();
|
|
792
|
-
break;
|
|
793
|
-
case 3:
|
|
794
|
-
message.newAdmin = reader.string();
|
|
795
|
-
break;
|
|
796
|
-
default:
|
|
797
|
-
reader.skipType(tag & 7);
|
|
798
|
-
break;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
return message;
|
|
802
|
-
},
|
|
803
|
-
fromJSON(object) {
|
|
804
|
-
return {
|
|
805
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
806
|
-
groupPolicyAddress: isSet(object.groupPolicyAddress)
|
|
807
|
-
? String(object.groupPolicyAddress)
|
|
808
|
-
: '',
|
|
809
|
-
newAdmin: isSet(object.newAdmin) ? String(object.newAdmin) : '',
|
|
810
|
-
};
|
|
811
|
-
},
|
|
812
|
-
toJSON(message) {
|
|
813
|
-
const obj = {};
|
|
814
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
815
|
-
message.groupPolicyAddress !== undefined &&
|
|
816
|
-
(obj.groupPolicyAddress = message.groupPolicyAddress);
|
|
817
|
-
message.newAdmin !== undefined && (obj.newAdmin = message.newAdmin);
|
|
818
|
-
return obj;
|
|
819
|
-
},
|
|
820
|
-
fromPartial(object) {
|
|
821
|
-
const message = createBaseMsgUpdateGroupPolicyAdmin();
|
|
822
|
-
message.admin = object.admin ?? '';
|
|
823
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? '';
|
|
824
|
-
message.newAdmin = object.newAdmin ?? '';
|
|
825
|
-
return message;
|
|
826
|
-
},
|
|
827
|
-
fromProtoMsg(message) {
|
|
828
|
-
return MsgUpdateGroupPolicyAdmin.decode(message.value);
|
|
829
|
-
},
|
|
830
|
-
toProto(message) {
|
|
831
|
-
return MsgUpdateGroupPolicyAdmin.encode(message).finish();
|
|
832
|
-
},
|
|
833
|
-
toProtoMsg(message) {
|
|
834
|
-
return {
|
|
835
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyAdmin',
|
|
836
|
-
value: MsgUpdateGroupPolicyAdmin.encode(message).finish(),
|
|
837
|
-
};
|
|
838
|
-
},
|
|
839
|
-
};
|
|
840
|
-
function createBaseMsgCreateGroupWithPolicy() {
|
|
841
|
-
return {
|
|
842
|
-
admin: '',
|
|
843
|
-
members: [],
|
|
844
|
-
groupMetadata: '',
|
|
845
|
-
groupPolicyMetadata: '',
|
|
846
|
-
groupPolicyAsAdmin: false,
|
|
847
|
-
decisionPolicy: undefined,
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
export const MsgCreateGroupWithPolicy = {
|
|
851
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupWithPolicy',
|
|
852
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
853
|
-
if (message.admin !== '') {
|
|
854
|
-
writer.uint32(10).string(message.admin);
|
|
855
|
-
}
|
|
856
|
-
for (const v of message.members) {
|
|
857
|
-
MemberRequest.encode(v, writer.uint32(18).fork()).ldelim();
|
|
858
|
-
}
|
|
859
|
-
if (message.groupMetadata !== '') {
|
|
860
|
-
writer.uint32(26).string(message.groupMetadata);
|
|
861
|
-
}
|
|
862
|
-
if (message.groupPolicyMetadata !== '') {
|
|
863
|
-
writer.uint32(34).string(message.groupPolicyMetadata);
|
|
864
|
-
}
|
|
865
|
-
if (message.groupPolicyAsAdmin === true) {
|
|
866
|
-
writer.uint32(40).bool(message.groupPolicyAsAdmin);
|
|
867
|
-
}
|
|
868
|
-
if (message.decisionPolicy !== undefined) {
|
|
869
|
-
Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim();
|
|
870
|
-
}
|
|
871
|
-
return writer;
|
|
872
|
-
},
|
|
873
|
-
decode(input, length) {
|
|
874
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
875
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
876
|
-
const message = createBaseMsgCreateGroupWithPolicy();
|
|
877
|
-
while (reader.pos < end) {
|
|
878
|
-
const tag = reader.uint32();
|
|
879
|
-
switch (tag >>> 3) {
|
|
880
|
-
case 1:
|
|
881
|
-
message.admin = reader.string();
|
|
882
|
-
break;
|
|
883
|
-
case 2:
|
|
884
|
-
message.members.push(MemberRequest.decode(reader, reader.uint32()));
|
|
885
|
-
break;
|
|
886
|
-
case 3:
|
|
887
|
-
message.groupMetadata = reader.string();
|
|
888
|
-
break;
|
|
889
|
-
case 4:
|
|
890
|
-
message.groupPolicyMetadata = reader.string();
|
|
891
|
-
break;
|
|
892
|
-
case 5:
|
|
893
|
-
message.groupPolicyAsAdmin = reader.bool();
|
|
894
|
-
break;
|
|
895
|
-
case 6:
|
|
896
|
-
message.decisionPolicy =
|
|
897
|
-
Cosmos_groupv1DecisionPolicy_InterfaceDecoder(reader);
|
|
898
|
-
break;
|
|
899
|
-
default:
|
|
900
|
-
reader.skipType(tag & 7);
|
|
901
|
-
break;
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
return message;
|
|
905
|
-
},
|
|
906
|
-
fromJSON(object) {
|
|
907
|
-
return {
|
|
908
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
909
|
-
members: Array.isArray(object?.members)
|
|
910
|
-
? object.members.map((e) => MemberRequest.fromJSON(e))
|
|
911
|
-
: [],
|
|
912
|
-
groupMetadata: isSet(object.groupMetadata)
|
|
913
|
-
? String(object.groupMetadata)
|
|
914
|
-
: '',
|
|
915
|
-
groupPolicyMetadata: isSet(object.groupPolicyMetadata)
|
|
916
|
-
? String(object.groupPolicyMetadata)
|
|
917
|
-
: '',
|
|
918
|
-
groupPolicyAsAdmin: isSet(object.groupPolicyAsAdmin)
|
|
919
|
-
? Boolean(object.groupPolicyAsAdmin)
|
|
920
|
-
: false,
|
|
921
|
-
decisionPolicy: isSet(object.decisionPolicy)
|
|
922
|
-
? Any.fromJSON(object.decisionPolicy)
|
|
923
|
-
: undefined,
|
|
924
|
-
};
|
|
925
|
-
},
|
|
926
|
-
toJSON(message) {
|
|
927
|
-
const obj = {};
|
|
928
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
929
|
-
if (message.members) {
|
|
930
|
-
obj.members = message.members.map(e => e ? MemberRequest.toJSON(e) : undefined);
|
|
931
|
-
}
|
|
932
|
-
else {
|
|
933
|
-
obj.members = [];
|
|
934
|
-
}
|
|
935
|
-
message.groupMetadata !== undefined &&
|
|
936
|
-
(obj.groupMetadata = message.groupMetadata);
|
|
937
|
-
message.groupPolicyMetadata !== undefined &&
|
|
938
|
-
(obj.groupPolicyMetadata = message.groupPolicyMetadata);
|
|
939
|
-
message.groupPolicyAsAdmin !== undefined &&
|
|
940
|
-
(obj.groupPolicyAsAdmin = message.groupPolicyAsAdmin);
|
|
941
|
-
message.decisionPolicy !== undefined &&
|
|
942
|
-
(obj.decisionPolicy = message.decisionPolicy
|
|
943
|
-
? Any.toJSON(message.decisionPolicy)
|
|
944
|
-
: undefined);
|
|
945
|
-
return obj;
|
|
946
|
-
},
|
|
947
|
-
fromPartial(object) {
|
|
948
|
-
const message = createBaseMsgCreateGroupWithPolicy();
|
|
949
|
-
message.admin = object.admin ?? '';
|
|
950
|
-
message.members =
|
|
951
|
-
object.members?.map(e => MemberRequest.fromPartial(e)) || [];
|
|
952
|
-
message.groupMetadata = object.groupMetadata ?? '';
|
|
953
|
-
message.groupPolicyMetadata = object.groupPolicyMetadata ?? '';
|
|
954
|
-
message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false;
|
|
955
|
-
message.decisionPolicy =
|
|
956
|
-
object.decisionPolicy !== undefined && object.decisionPolicy !== null
|
|
957
|
-
? Any.fromPartial(object.decisionPolicy)
|
|
958
|
-
: undefined;
|
|
959
|
-
return message;
|
|
960
|
-
},
|
|
961
|
-
fromProtoMsg(message) {
|
|
962
|
-
return MsgCreateGroupWithPolicy.decode(message.value);
|
|
963
|
-
},
|
|
964
|
-
toProto(message) {
|
|
965
|
-
return MsgCreateGroupWithPolicy.encode(message).finish();
|
|
966
|
-
},
|
|
967
|
-
toProtoMsg(message) {
|
|
968
|
-
return {
|
|
969
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupWithPolicy',
|
|
970
|
-
value: MsgCreateGroupWithPolicy.encode(message).finish(),
|
|
971
|
-
};
|
|
972
|
-
},
|
|
973
|
-
};
|
|
974
|
-
function createBaseMsgCreateGroupWithPolicyResponse() {
|
|
975
|
-
return {
|
|
976
|
-
groupId: BigInt(0),
|
|
977
|
-
groupPolicyAddress: '',
|
|
978
|
-
};
|
|
979
|
-
}
|
|
980
|
-
export const MsgCreateGroupWithPolicyResponse = {
|
|
981
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupWithPolicyResponse',
|
|
982
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
983
|
-
if (message.groupId !== BigInt(0)) {
|
|
984
|
-
writer.uint32(8).uint64(message.groupId);
|
|
985
|
-
}
|
|
986
|
-
if (message.groupPolicyAddress !== '') {
|
|
987
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
988
|
-
}
|
|
989
|
-
return writer;
|
|
990
|
-
},
|
|
991
|
-
decode(input, length) {
|
|
992
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
993
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
994
|
-
const message = createBaseMsgCreateGroupWithPolicyResponse();
|
|
995
|
-
while (reader.pos < end) {
|
|
996
|
-
const tag = reader.uint32();
|
|
997
|
-
switch (tag >>> 3) {
|
|
998
|
-
case 1:
|
|
999
|
-
message.groupId = reader.uint64();
|
|
1000
|
-
break;
|
|
1001
|
-
case 2:
|
|
1002
|
-
message.groupPolicyAddress = reader.string();
|
|
1003
|
-
break;
|
|
1004
|
-
default:
|
|
1005
|
-
reader.skipType(tag & 7);
|
|
1006
|
-
break;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
return message;
|
|
1010
|
-
},
|
|
1011
|
-
fromJSON(object) {
|
|
1012
|
-
return {
|
|
1013
|
-
groupId: isSet(object.groupId)
|
|
1014
|
-
? BigInt(object.groupId.toString())
|
|
1015
|
-
: BigInt(0),
|
|
1016
|
-
groupPolicyAddress: isSet(object.groupPolicyAddress)
|
|
1017
|
-
? String(object.groupPolicyAddress)
|
|
1018
|
-
: '',
|
|
1019
|
-
};
|
|
1020
|
-
},
|
|
1021
|
-
toJSON(message) {
|
|
1022
|
-
const obj = {};
|
|
1023
|
-
message.groupId !== undefined &&
|
|
1024
|
-
(obj.groupId = (message.groupId || BigInt(0)).toString());
|
|
1025
|
-
message.groupPolicyAddress !== undefined &&
|
|
1026
|
-
(obj.groupPolicyAddress = message.groupPolicyAddress);
|
|
1027
|
-
return obj;
|
|
1028
|
-
},
|
|
1029
|
-
fromPartial(object) {
|
|
1030
|
-
const message = createBaseMsgCreateGroupWithPolicyResponse();
|
|
1031
|
-
message.groupId =
|
|
1032
|
-
object.groupId !== undefined && object.groupId !== null
|
|
1033
|
-
? BigInt(object.groupId.toString())
|
|
1034
|
-
: BigInt(0);
|
|
1035
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? '';
|
|
1036
|
-
return message;
|
|
1037
|
-
},
|
|
1038
|
-
fromProtoMsg(message) {
|
|
1039
|
-
return MsgCreateGroupWithPolicyResponse.decode(message.value);
|
|
1040
|
-
},
|
|
1041
|
-
toProto(message) {
|
|
1042
|
-
return MsgCreateGroupWithPolicyResponse.encode(message).finish();
|
|
1043
|
-
},
|
|
1044
|
-
toProtoMsg(message) {
|
|
1045
|
-
return {
|
|
1046
|
-
typeUrl: '/cosmos.group.v1.MsgCreateGroupWithPolicyResponse',
|
|
1047
|
-
value: MsgCreateGroupWithPolicyResponse.encode(message).finish(),
|
|
1048
|
-
};
|
|
1049
|
-
},
|
|
1050
|
-
};
|
|
1051
|
-
function createBaseMsgUpdateGroupPolicyAdminResponse() {
|
|
1052
|
-
return {};
|
|
1053
|
-
}
|
|
1054
|
-
export const MsgUpdateGroupPolicyAdminResponse = {
|
|
1055
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse',
|
|
1056
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1057
|
-
return writer;
|
|
1058
|
-
},
|
|
1059
|
-
decode(input, length) {
|
|
1060
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1061
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1062
|
-
const message = createBaseMsgUpdateGroupPolicyAdminResponse();
|
|
1063
|
-
while (reader.pos < end) {
|
|
1064
|
-
const tag = reader.uint32();
|
|
1065
|
-
switch (tag >>> 3) {
|
|
1066
|
-
default:
|
|
1067
|
-
reader.skipType(tag & 7);
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
return message;
|
|
1072
|
-
},
|
|
1073
|
-
fromJSON(_) {
|
|
1074
|
-
return {};
|
|
1075
|
-
},
|
|
1076
|
-
toJSON(_) {
|
|
1077
|
-
const obj = {};
|
|
1078
|
-
return obj;
|
|
1079
|
-
},
|
|
1080
|
-
fromPartial(_) {
|
|
1081
|
-
const message = createBaseMsgUpdateGroupPolicyAdminResponse();
|
|
1082
|
-
return message;
|
|
1083
|
-
},
|
|
1084
|
-
fromProtoMsg(message) {
|
|
1085
|
-
return MsgUpdateGroupPolicyAdminResponse.decode(message.value);
|
|
1086
|
-
},
|
|
1087
|
-
toProto(message) {
|
|
1088
|
-
return MsgUpdateGroupPolicyAdminResponse.encode(message).finish();
|
|
1089
|
-
},
|
|
1090
|
-
toProtoMsg(message) {
|
|
1091
|
-
return {
|
|
1092
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse',
|
|
1093
|
-
value: MsgUpdateGroupPolicyAdminResponse.encode(message).finish(),
|
|
1094
|
-
};
|
|
1095
|
-
},
|
|
1096
|
-
};
|
|
1097
|
-
function createBaseMsgUpdateGroupPolicyDecisionPolicy() {
|
|
1098
|
-
return {
|
|
1099
|
-
admin: '',
|
|
1100
|
-
groupPolicyAddress: '',
|
|
1101
|
-
decisionPolicy: undefined,
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
export const MsgUpdateGroupPolicyDecisionPolicy = {
|
|
1105
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy',
|
|
1106
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1107
|
-
if (message.admin !== '') {
|
|
1108
|
-
writer.uint32(10).string(message.admin);
|
|
1109
|
-
}
|
|
1110
|
-
if (message.groupPolicyAddress !== '') {
|
|
1111
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
1112
|
-
}
|
|
1113
|
-
if (message.decisionPolicy !== undefined) {
|
|
1114
|
-
Any.encode(message.decisionPolicy, writer.uint32(26).fork()).ldelim();
|
|
1115
|
-
}
|
|
1116
|
-
return writer;
|
|
1117
|
-
},
|
|
1118
|
-
decode(input, length) {
|
|
1119
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1120
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1121
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
|
|
1122
|
-
while (reader.pos < end) {
|
|
1123
|
-
const tag = reader.uint32();
|
|
1124
|
-
switch (tag >>> 3) {
|
|
1125
|
-
case 1:
|
|
1126
|
-
message.admin = reader.string();
|
|
1127
|
-
break;
|
|
1128
|
-
case 2:
|
|
1129
|
-
message.groupPolicyAddress = reader.string();
|
|
1130
|
-
break;
|
|
1131
|
-
case 3:
|
|
1132
|
-
message.decisionPolicy =
|
|
1133
|
-
Cosmos_groupv1DecisionPolicy_InterfaceDecoder(reader);
|
|
1134
|
-
break;
|
|
1135
|
-
default:
|
|
1136
|
-
reader.skipType(tag & 7);
|
|
1137
|
-
break;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
return message;
|
|
1141
|
-
},
|
|
1142
|
-
fromJSON(object) {
|
|
1143
|
-
return {
|
|
1144
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
1145
|
-
groupPolicyAddress: isSet(object.groupPolicyAddress)
|
|
1146
|
-
? String(object.groupPolicyAddress)
|
|
1147
|
-
: '',
|
|
1148
|
-
decisionPolicy: isSet(object.decisionPolicy)
|
|
1149
|
-
? Any.fromJSON(object.decisionPolicy)
|
|
1150
|
-
: undefined,
|
|
1151
|
-
};
|
|
1152
|
-
},
|
|
1153
|
-
toJSON(message) {
|
|
1154
|
-
const obj = {};
|
|
1155
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
1156
|
-
message.groupPolicyAddress !== undefined &&
|
|
1157
|
-
(obj.groupPolicyAddress = message.groupPolicyAddress);
|
|
1158
|
-
message.decisionPolicy !== undefined &&
|
|
1159
|
-
(obj.decisionPolicy = message.decisionPolicy
|
|
1160
|
-
? Any.toJSON(message.decisionPolicy)
|
|
1161
|
-
: undefined);
|
|
1162
|
-
return obj;
|
|
1163
|
-
},
|
|
1164
|
-
fromPartial(object) {
|
|
1165
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
|
|
1166
|
-
message.admin = object.admin ?? '';
|
|
1167
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? '';
|
|
1168
|
-
message.decisionPolicy =
|
|
1169
|
-
object.decisionPolicy !== undefined && object.decisionPolicy !== null
|
|
1170
|
-
? Any.fromPartial(object.decisionPolicy)
|
|
1171
|
-
: undefined;
|
|
1172
|
-
return message;
|
|
1173
|
-
},
|
|
1174
|
-
fromProtoMsg(message) {
|
|
1175
|
-
return MsgUpdateGroupPolicyDecisionPolicy.decode(message.value);
|
|
1176
|
-
},
|
|
1177
|
-
toProto(message) {
|
|
1178
|
-
return MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish();
|
|
1179
|
-
},
|
|
1180
|
-
toProtoMsg(message) {
|
|
1181
|
-
return {
|
|
1182
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy',
|
|
1183
|
-
value: MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish(),
|
|
1184
|
-
};
|
|
1185
|
-
},
|
|
1186
|
-
};
|
|
1187
|
-
function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse() {
|
|
1188
|
-
return {};
|
|
1189
|
-
}
|
|
1190
|
-
export const MsgUpdateGroupPolicyDecisionPolicyResponse = {
|
|
1191
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse',
|
|
1192
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1193
|
-
return writer;
|
|
1194
|
-
},
|
|
1195
|
-
decode(input, length) {
|
|
1196
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1197
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1198
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
|
|
1199
|
-
while (reader.pos < end) {
|
|
1200
|
-
const tag = reader.uint32();
|
|
1201
|
-
switch (tag >>> 3) {
|
|
1202
|
-
default:
|
|
1203
|
-
reader.skipType(tag & 7);
|
|
1204
|
-
break;
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
return message;
|
|
1208
|
-
},
|
|
1209
|
-
fromJSON(_) {
|
|
1210
|
-
return {};
|
|
1211
|
-
},
|
|
1212
|
-
toJSON(_) {
|
|
1213
|
-
const obj = {};
|
|
1214
|
-
return obj;
|
|
1215
|
-
},
|
|
1216
|
-
fromPartial(_) {
|
|
1217
|
-
const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
|
|
1218
|
-
return message;
|
|
1219
|
-
},
|
|
1220
|
-
fromProtoMsg(message) {
|
|
1221
|
-
return MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value);
|
|
1222
|
-
},
|
|
1223
|
-
toProto(message) {
|
|
1224
|
-
return MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish();
|
|
1225
|
-
},
|
|
1226
|
-
toProtoMsg(message) {
|
|
1227
|
-
return {
|
|
1228
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse',
|
|
1229
|
-
value: MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish(),
|
|
1230
|
-
};
|
|
1231
|
-
},
|
|
1232
|
-
};
|
|
1233
|
-
function createBaseMsgUpdateGroupPolicyMetadata() {
|
|
1234
|
-
return {
|
|
1235
|
-
admin: '',
|
|
1236
|
-
groupPolicyAddress: '',
|
|
1237
|
-
metadata: '',
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
export const MsgUpdateGroupPolicyMetadata = {
|
|
1241
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyMetadata',
|
|
1242
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1243
|
-
if (message.admin !== '') {
|
|
1244
|
-
writer.uint32(10).string(message.admin);
|
|
1245
|
-
}
|
|
1246
|
-
if (message.groupPolicyAddress !== '') {
|
|
1247
|
-
writer.uint32(18).string(message.groupPolicyAddress);
|
|
1248
|
-
}
|
|
1249
|
-
if (message.metadata !== '') {
|
|
1250
|
-
writer.uint32(26).string(message.metadata);
|
|
1251
|
-
}
|
|
1252
|
-
return writer;
|
|
1253
|
-
},
|
|
1254
|
-
decode(input, length) {
|
|
1255
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1256
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1257
|
-
const message = createBaseMsgUpdateGroupPolicyMetadata();
|
|
1258
|
-
while (reader.pos < end) {
|
|
1259
|
-
const tag = reader.uint32();
|
|
1260
|
-
switch (tag >>> 3) {
|
|
1261
|
-
case 1:
|
|
1262
|
-
message.admin = reader.string();
|
|
1263
|
-
break;
|
|
1264
|
-
case 2:
|
|
1265
|
-
message.groupPolicyAddress = reader.string();
|
|
1266
|
-
break;
|
|
1267
|
-
case 3:
|
|
1268
|
-
message.metadata = reader.string();
|
|
1269
|
-
break;
|
|
1270
|
-
default:
|
|
1271
|
-
reader.skipType(tag & 7);
|
|
1272
|
-
break;
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
return message;
|
|
1276
|
-
},
|
|
1277
|
-
fromJSON(object) {
|
|
1278
|
-
return {
|
|
1279
|
-
admin: isSet(object.admin) ? String(object.admin) : '',
|
|
1280
|
-
groupPolicyAddress: isSet(object.groupPolicyAddress)
|
|
1281
|
-
? String(object.groupPolicyAddress)
|
|
1282
|
-
: '',
|
|
1283
|
-
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
1284
|
-
};
|
|
1285
|
-
},
|
|
1286
|
-
toJSON(message) {
|
|
1287
|
-
const obj = {};
|
|
1288
|
-
message.admin !== undefined && (obj.admin = message.admin);
|
|
1289
|
-
message.groupPolicyAddress !== undefined &&
|
|
1290
|
-
(obj.groupPolicyAddress = message.groupPolicyAddress);
|
|
1291
|
-
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
1292
|
-
return obj;
|
|
1293
|
-
},
|
|
1294
|
-
fromPartial(object) {
|
|
1295
|
-
const message = createBaseMsgUpdateGroupPolicyMetadata();
|
|
1296
|
-
message.admin = object.admin ?? '';
|
|
1297
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? '';
|
|
1298
|
-
message.metadata = object.metadata ?? '';
|
|
1299
|
-
return message;
|
|
1300
|
-
},
|
|
1301
|
-
fromProtoMsg(message) {
|
|
1302
|
-
return MsgUpdateGroupPolicyMetadata.decode(message.value);
|
|
1303
|
-
},
|
|
1304
|
-
toProto(message) {
|
|
1305
|
-
return MsgUpdateGroupPolicyMetadata.encode(message).finish();
|
|
1306
|
-
},
|
|
1307
|
-
toProtoMsg(message) {
|
|
1308
|
-
return {
|
|
1309
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyMetadata',
|
|
1310
|
-
value: MsgUpdateGroupPolicyMetadata.encode(message).finish(),
|
|
1311
|
-
};
|
|
1312
|
-
},
|
|
1313
|
-
};
|
|
1314
|
-
function createBaseMsgUpdateGroupPolicyMetadataResponse() {
|
|
1315
|
-
return {};
|
|
1316
|
-
}
|
|
1317
|
-
export const MsgUpdateGroupPolicyMetadataResponse = {
|
|
1318
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse',
|
|
1319
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1320
|
-
return writer;
|
|
1321
|
-
},
|
|
1322
|
-
decode(input, length) {
|
|
1323
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1324
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1325
|
-
const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
|
|
1326
|
-
while (reader.pos < end) {
|
|
1327
|
-
const tag = reader.uint32();
|
|
1328
|
-
switch (tag >>> 3) {
|
|
1329
|
-
default:
|
|
1330
|
-
reader.skipType(tag & 7);
|
|
1331
|
-
break;
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
return message;
|
|
1335
|
-
},
|
|
1336
|
-
fromJSON(_) {
|
|
1337
|
-
return {};
|
|
1338
|
-
},
|
|
1339
|
-
toJSON(_) {
|
|
1340
|
-
const obj = {};
|
|
1341
|
-
return obj;
|
|
1342
|
-
},
|
|
1343
|
-
fromPartial(_) {
|
|
1344
|
-
const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
|
|
1345
|
-
return message;
|
|
1346
|
-
},
|
|
1347
|
-
fromProtoMsg(message) {
|
|
1348
|
-
return MsgUpdateGroupPolicyMetadataResponse.decode(message.value);
|
|
1349
|
-
},
|
|
1350
|
-
toProto(message) {
|
|
1351
|
-
return MsgUpdateGroupPolicyMetadataResponse.encode(message).finish();
|
|
1352
|
-
},
|
|
1353
|
-
toProtoMsg(message) {
|
|
1354
|
-
return {
|
|
1355
|
-
typeUrl: '/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse',
|
|
1356
|
-
value: MsgUpdateGroupPolicyMetadataResponse.encode(message).finish(),
|
|
1357
|
-
};
|
|
1358
|
-
},
|
|
1359
|
-
};
|
|
1360
|
-
function createBaseMsgSubmitProposal() {
|
|
1361
|
-
return {
|
|
1362
|
-
groupPolicyAddress: '',
|
|
1363
|
-
proposers: [],
|
|
1364
|
-
metadata: '',
|
|
1365
|
-
messages: [],
|
|
1366
|
-
exec: 0,
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
export const MsgSubmitProposal = {
|
|
1370
|
-
typeUrl: '/cosmos.group.v1.MsgSubmitProposal',
|
|
1371
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1372
|
-
if (message.groupPolicyAddress !== '') {
|
|
1373
|
-
writer.uint32(10).string(message.groupPolicyAddress);
|
|
1374
|
-
}
|
|
1375
|
-
for (const v of message.proposers) {
|
|
1376
|
-
writer.uint32(18).string(v);
|
|
1377
|
-
}
|
|
1378
|
-
if (message.metadata !== '') {
|
|
1379
|
-
writer.uint32(26).string(message.metadata);
|
|
1380
|
-
}
|
|
1381
|
-
for (const v of message.messages) {
|
|
1382
|
-
Any.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1383
|
-
}
|
|
1384
|
-
if (message.exec !== 0) {
|
|
1385
|
-
writer.uint32(40).int32(message.exec);
|
|
1386
|
-
}
|
|
1387
|
-
return writer;
|
|
1388
|
-
},
|
|
1389
|
-
decode(input, length) {
|
|
1390
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1391
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1392
|
-
const message = createBaseMsgSubmitProposal();
|
|
1393
|
-
while (reader.pos < end) {
|
|
1394
|
-
const tag = reader.uint32();
|
|
1395
|
-
switch (tag >>> 3) {
|
|
1396
|
-
case 1:
|
|
1397
|
-
message.groupPolicyAddress = reader.string();
|
|
1398
|
-
break;
|
|
1399
|
-
case 2:
|
|
1400
|
-
message.proposers.push(reader.string());
|
|
1401
|
-
break;
|
|
1402
|
-
case 3:
|
|
1403
|
-
message.metadata = reader.string();
|
|
1404
|
-
break;
|
|
1405
|
-
case 4:
|
|
1406
|
-
message.messages.push(Any.decode(reader, reader.uint32()));
|
|
1407
|
-
break;
|
|
1408
|
-
case 5:
|
|
1409
|
-
message.exec = reader.int32();
|
|
1410
|
-
break;
|
|
1411
|
-
default:
|
|
1412
|
-
reader.skipType(tag & 7);
|
|
1413
|
-
break;
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
return message;
|
|
1417
|
-
},
|
|
1418
|
-
fromJSON(object) {
|
|
1419
|
-
return {
|
|
1420
|
-
groupPolicyAddress: isSet(object.groupPolicyAddress)
|
|
1421
|
-
? String(object.groupPolicyAddress)
|
|
1422
|
-
: '',
|
|
1423
|
-
proposers: Array.isArray(object?.proposers)
|
|
1424
|
-
? object.proposers.map((e) => String(e))
|
|
1425
|
-
: [],
|
|
1426
|
-
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
1427
|
-
messages: Array.isArray(object?.messages)
|
|
1428
|
-
? object.messages.map((e) => Any.fromJSON(e))
|
|
1429
|
-
: [],
|
|
1430
|
-
exec: isSet(object.exec) ? execFromJSON(object.exec) : -1,
|
|
1431
|
-
};
|
|
1432
|
-
},
|
|
1433
|
-
toJSON(message) {
|
|
1434
|
-
const obj = {};
|
|
1435
|
-
message.groupPolicyAddress !== undefined &&
|
|
1436
|
-
(obj.groupPolicyAddress = message.groupPolicyAddress);
|
|
1437
|
-
if (message.proposers) {
|
|
1438
|
-
obj.proposers = message.proposers.map(e => e);
|
|
1439
|
-
}
|
|
1440
|
-
else {
|
|
1441
|
-
obj.proposers = [];
|
|
1442
|
-
}
|
|
1443
|
-
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
1444
|
-
if (message.messages) {
|
|
1445
|
-
obj.messages = message.messages.map(e => (e ? Any.toJSON(e) : undefined));
|
|
1446
|
-
}
|
|
1447
|
-
else {
|
|
1448
|
-
obj.messages = [];
|
|
1449
|
-
}
|
|
1450
|
-
message.exec !== undefined && (obj.exec = execToJSON(message.exec));
|
|
1451
|
-
return obj;
|
|
1452
|
-
},
|
|
1453
|
-
fromPartial(object) {
|
|
1454
|
-
const message = createBaseMsgSubmitProposal();
|
|
1455
|
-
message.groupPolicyAddress = object.groupPolicyAddress ?? '';
|
|
1456
|
-
message.proposers = object.proposers?.map(e => e) || [];
|
|
1457
|
-
message.metadata = object.metadata ?? '';
|
|
1458
|
-
message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
|
|
1459
|
-
message.exec = object.exec ?? 0;
|
|
1460
|
-
return message;
|
|
1461
|
-
},
|
|
1462
|
-
fromProtoMsg(message) {
|
|
1463
|
-
return MsgSubmitProposal.decode(message.value);
|
|
1464
|
-
},
|
|
1465
|
-
toProto(message) {
|
|
1466
|
-
return MsgSubmitProposal.encode(message).finish();
|
|
1467
|
-
},
|
|
1468
|
-
toProtoMsg(message) {
|
|
1469
|
-
return {
|
|
1470
|
-
typeUrl: '/cosmos.group.v1.MsgSubmitProposal',
|
|
1471
|
-
value: MsgSubmitProposal.encode(message).finish(),
|
|
1472
|
-
};
|
|
1473
|
-
},
|
|
1474
|
-
};
|
|
1475
|
-
function createBaseMsgSubmitProposalResponse() {
|
|
1476
|
-
return {
|
|
1477
|
-
proposalId: BigInt(0),
|
|
1478
|
-
};
|
|
1479
|
-
}
|
|
1480
|
-
export const MsgSubmitProposalResponse = {
|
|
1481
|
-
typeUrl: '/cosmos.group.v1.MsgSubmitProposalResponse',
|
|
1482
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1483
|
-
if (message.proposalId !== BigInt(0)) {
|
|
1484
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1485
|
-
}
|
|
1486
|
-
return writer;
|
|
1487
|
-
},
|
|
1488
|
-
decode(input, length) {
|
|
1489
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1490
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1491
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
1492
|
-
while (reader.pos < end) {
|
|
1493
|
-
const tag = reader.uint32();
|
|
1494
|
-
switch (tag >>> 3) {
|
|
1495
|
-
case 1:
|
|
1496
|
-
message.proposalId = reader.uint64();
|
|
1497
|
-
break;
|
|
1498
|
-
default:
|
|
1499
|
-
reader.skipType(tag & 7);
|
|
1500
|
-
break;
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
return message;
|
|
1504
|
-
},
|
|
1505
|
-
fromJSON(object) {
|
|
1506
|
-
return {
|
|
1507
|
-
proposalId: isSet(object.proposalId)
|
|
1508
|
-
? BigInt(object.proposalId.toString())
|
|
1509
|
-
: BigInt(0),
|
|
1510
|
-
};
|
|
1511
|
-
},
|
|
1512
|
-
toJSON(message) {
|
|
1513
|
-
const obj = {};
|
|
1514
|
-
message.proposalId !== undefined &&
|
|
1515
|
-
(obj.proposalId = (message.proposalId || BigInt(0)).toString());
|
|
1516
|
-
return obj;
|
|
1517
|
-
},
|
|
1518
|
-
fromPartial(object) {
|
|
1519
|
-
const message = createBaseMsgSubmitProposalResponse();
|
|
1520
|
-
message.proposalId =
|
|
1521
|
-
object.proposalId !== undefined && object.proposalId !== null
|
|
1522
|
-
? BigInt(object.proposalId.toString())
|
|
1523
|
-
: BigInt(0);
|
|
1524
|
-
return message;
|
|
1525
|
-
},
|
|
1526
|
-
fromProtoMsg(message) {
|
|
1527
|
-
return MsgSubmitProposalResponse.decode(message.value);
|
|
1528
|
-
},
|
|
1529
|
-
toProto(message) {
|
|
1530
|
-
return MsgSubmitProposalResponse.encode(message).finish();
|
|
1531
|
-
},
|
|
1532
|
-
toProtoMsg(message) {
|
|
1533
|
-
return {
|
|
1534
|
-
typeUrl: '/cosmos.group.v1.MsgSubmitProposalResponse',
|
|
1535
|
-
value: MsgSubmitProposalResponse.encode(message).finish(),
|
|
1536
|
-
};
|
|
1537
|
-
},
|
|
1538
|
-
};
|
|
1539
|
-
function createBaseMsgWithdrawProposal() {
|
|
1540
|
-
return {
|
|
1541
|
-
proposalId: BigInt(0),
|
|
1542
|
-
address: '',
|
|
1543
|
-
};
|
|
1544
|
-
}
|
|
1545
|
-
export const MsgWithdrawProposal = {
|
|
1546
|
-
typeUrl: '/cosmos.group.v1.MsgWithdrawProposal',
|
|
1547
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1548
|
-
if (message.proposalId !== BigInt(0)) {
|
|
1549
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1550
|
-
}
|
|
1551
|
-
if (message.address !== '') {
|
|
1552
|
-
writer.uint32(18).string(message.address);
|
|
1553
|
-
}
|
|
1554
|
-
return writer;
|
|
1555
|
-
},
|
|
1556
|
-
decode(input, length) {
|
|
1557
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1558
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1559
|
-
const message = createBaseMsgWithdrawProposal();
|
|
1560
|
-
while (reader.pos < end) {
|
|
1561
|
-
const tag = reader.uint32();
|
|
1562
|
-
switch (tag >>> 3) {
|
|
1563
|
-
case 1:
|
|
1564
|
-
message.proposalId = reader.uint64();
|
|
1565
|
-
break;
|
|
1566
|
-
case 2:
|
|
1567
|
-
message.address = reader.string();
|
|
1568
|
-
break;
|
|
1569
|
-
default:
|
|
1570
|
-
reader.skipType(tag & 7);
|
|
1571
|
-
break;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
return message;
|
|
1575
|
-
},
|
|
1576
|
-
fromJSON(object) {
|
|
1577
|
-
return {
|
|
1578
|
-
proposalId: isSet(object.proposalId)
|
|
1579
|
-
? BigInt(object.proposalId.toString())
|
|
1580
|
-
: BigInt(0),
|
|
1581
|
-
address: isSet(object.address) ? String(object.address) : '',
|
|
1582
|
-
};
|
|
1583
|
-
},
|
|
1584
|
-
toJSON(message) {
|
|
1585
|
-
const obj = {};
|
|
1586
|
-
message.proposalId !== undefined &&
|
|
1587
|
-
(obj.proposalId = (message.proposalId || BigInt(0)).toString());
|
|
1588
|
-
message.address !== undefined && (obj.address = message.address);
|
|
1589
|
-
return obj;
|
|
1590
|
-
},
|
|
1591
|
-
fromPartial(object) {
|
|
1592
|
-
const message = createBaseMsgWithdrawProposal();
|
|
1593
|
-
message.proposalId =
|
|
1594
|
-
object.proposalId !== undefined && object.proposalId !== null
|
|
1595
|
-
? BigInt(object.proposalId.toString())
|
|
1596
|
-
: BigInt(0);
|
|
1597
|
-
message.address = object.address ?? '';
|
|
1598
|
-
return message;
|
|
1599
|
-
},
|
|
1600
|
-
fromProtoMsg(message) {
|
|
1601
|
-
return MsgWithdrawProposal.decode(message.value);
|
|
1602
|
-
},
|
|
1603
|
-
toProto(message) {
|
|
1604
|
-
return MsgWithdrawProposal.encode(message).finish();
|
|
1605
|
-
},
|
|
1606
|
-
toProtoMsg(message) {
|
|
1607
|
-
return {
|
|
1608
|
-
typeUrl: '/cosmos.group.v1.MsgWithdrawProposal',
|
|
1609
|
-
value: MsgWithdrawProposal.encode(message).finish(),
|
|
1610
|
-
};
|
|
1611
|
-
},
|
|
1612
|
-
};
|
|
1613
|
-
function createBaseMsgWithdrawProposalResponse() {
|
|
1614
|
-
return {};
|
|
1615
|
-
}
|
|
1616
|
-
export const MsgWithdrawProposalResponse = {
|
|
1617
|
-
typeUrl: '/cosmos.group.v1.MsgWithdrawProposalResponse',
|
|
1618
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1619
|
-
return writer;
|
|
1620
|
-
},
|
|
1621
|
-
decode(input, length) {
|
|
1622
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1623
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1624
|
-
const message = createBaseMsgWithdrawProposalResponse();
|
|
1625
|
-
while (reader.pos < end) {
|
|
1626
|
-
const tag = reader.uint32();
|
|
1627
|
-
switch (tag >>> 3) {
|
|
1628
|
-
default:
|
|
1629
|
-
reader.skipType(tag & 7);
|
|
1630
|
-
break;
|
|
1631
|
-
}
|
|
1632
|
-
}
|
|
1633
|
-
return message;
|
|
1634
|
-
},
|
|
1635
|
-
fromJSON(_) {
|
|
1636
|
-
return {};
|
|
1637
|
-
},
|
|
1638
|
-
toJSON(_) {
|
|
1639
|
-
const obj = {};
|
|
1640
|
-
return obj;
|
|
1641
|
-
},
|
|
1642
|
-
fromPartial(_) {
|
|
1643
|
-
const message = createBaseMsgWithdrawProposalResponse();
|
|
1644
|
-
return message;
|
|
1645
|
-
},
|
|
1646
|
-
fromProtoMsg(message) {
|
|
1647
|
-
return MsgWithdrawProposalResponse.decode(message.value);
|
|
1648
|
-
},
|
|
1649
|
-
toProto(message) {
|
|
1650
|
-
return MsgWithdrawProposalResponse.encode(message).finish();
|
|
1651
|
-
},
|
|
1652
|
-
toProtoMsg(message) {
|
|
1653
|
-
return {
|
|
1654
|
-
typeUrl: '/cosmos.group.v1.MsgWithdrawProposalResponse',
|
|
1655
|
-
value: MsgWithdrawProposalResponse.encode(message).finish(),
|
|
1656
|
-
};
|
|
1657
|
-
},
|
|
1658
|
-
};
|
|
1659
|
-
function createBaseMsgVote() {
|
|
1660
|
-
return {
|
|
1661
|
-
proposalId: BigInt(0),
|
|
1662
|
-
voter: '',
|
|
1663
|
-
option: 0,
|
|
1664
|
-
metadata: '',
|
|
1665
|
-
exec: 0,
|
|
1666
|
-
};
|
|
1667
|
-
}
|
|
1668
|
-
export const MsgVote = {
|
|
1669
|
-
typeUrl: '/cosmos.group.v1.MsgVote',
|
|
1670
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1671
|
-
if (message.proposalId !== BigInt(0)) {
|
|
1672
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1673
|
-
}
|
|
1674
|
-
if (message.voter !== '') {
|
|
1675
|
-
writer.uint32(18).string(message.voter);
|
|
1676
|
-
}
|
|
1677
|
-
if (message.option !== 0) {
|
|
1678
|
-
writer.uint32(24).int32(message.option);
|
|
1679
|
-
}
|
|
1680
|
-
if (message.metadata !== '') {
|
|
1681
|
-
writer.uint32(34).string(message.metadata);
|
|
1682
|
-
}
|
|
1683
|
-
if (message.exec !== 0) {
|
|
1684
|
-
writer.uint32(40).int32(message.exec);
|
|
1685
|
-
}
|
|
1686
|
-
return writer;
|
|
1687
|
-
},
|
|
1688
|
-
decode(input, length) {
|
|
1689
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1690
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1691
|
-
const message = createBaseMsgVote();
|
|
1692
|
-
while (reader.pos < end) {
|
|
1693
|
-
const tag = reader.uint32();
|
|
1694
|
-
switch (tag >>> 3) {
|
|
1695
|
-
case 1:
|
|
1696
|
-
message.proposalId = reader.uint64();
|
|
1697
|
-
break;
|
|
1698
|
-
case 2:
|
|
1699
|
-
message.voter = reader.string();
|
|
1700
|
-
break;
|
|
1701
|
-
case 3:
|
|
1702
|
-
message.option = reader.int32();
|
|
1703
|
-
break;
|
|
1704
|
-
case 4:
|
|
1705
|
-
message.metadata = reader.string();
|
|
1706
|
-
break;
|
|
1707
|
-
case 5:
|
|
1708
|
-
message.exec = reader.int32();
|
|
1709
|
-
break;
|
|
1710
|
-
default:
|
|
1711
|
-
reader.skipType(tag & 7);
|
|
1712
|
-
break;
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
return message;
|
|
1716
|
-
},
|
|
1717
|
-
fromJSON(object) {
|
|
1718
|
-
return {
|
|
1719
|
-
proposalId: isSet(object.proposalId)
|
|
1720
|
-
? BigInt(object.proposalId.toString())
|
|
1721
|
-
: BigInt(0),
|
|
1722
|
-
voter: isSet(object.voter) ? String(object.voter) : '',
|
|
1723
|
-
option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1,
|
|
1724
|
-
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
1725
|
-
exec: isSet(object.exec) ? execFromJSON(object.exec) : -1,
|
|
1726
|
-
};
|
|
1727
|
-
},
|
|
1728
|
-
toJSON(message) {
|
|
1729
|
-
const obj = {};
|
|
1730
|
-
message.proposalId !== undefined &&
|
|
1731
|
-
(obj.proposalId = (message.proposalId || BigInt(0)).toString());
|
|
1732
|
-
message.voter !== undefined && (obj.voter = message.voter);
|
|
1733
|
-
message.option !== undefined &&
|
|
1734
|
-
(obj.option = voteOptionToJSON(message.option));
|
|
1735
|
-
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
1736
|
-
message.exec !== undefined && (obj.exec = execToJSON(message.exec));
|
|
1737
|
-
return obj;
|
|
1738
|
-
},
|
|
1739
|
-
fromPartial(object) {
|
|
1740
|
-
const message = createBaseMsgVote();
|
|
1741
|
-
message.proposalId =
|
|
1742
|
-
object.proposalId !== undefined && object.proposalId !== null
|
|
1743
|
-
? BigInt(object.proposalId.toString())
|
|
1744
|
-
: BigInt(0);
|
|
1745
|
-
message.voter = object.voter ?? '';
|
|
1746
|
-
message.option = object.option ?? 0;
|
|
1747
|
-
message.metadata = object.metadata ?? '';
|
|
1748
|
-
message.exec = object.exec ?? 0;
|
|
1749
|
-
return message;
|
|
1750
|
-
},
|
|
1751
|
-
fromProtoMsg(message) {
|
|
1752
|
-
return MsgVote.decode(message.value);
|
|
1753
|
-
},
|
|
1754
|
-
toProto(message) {
|
|
1755
|
-
return MsgVote.encode(message).finish();
|
|
1756
|
-
},
|
|
1757
|
-
toProtoMsg(message) {
|
|
1758
|
-
return {
|
|
1759
|
-
typeUrl: '/cosmos.group.v1.MsgVote',
|
|
1760
|
-
value: MsgVote.encode(message).finish(),
|
|
1761
|
-
};
|
|
1762
|
-
},
|
|
1763
|
-
};
|
|
1764
|
-
function createBaseMsgVoteResponse() {
|
|
1765
|
-
return {};
|
|
1766
|
-
}
|
|
1767
|
-
export const MsgVoteResponse = {
|
|
1768
|
-
typeUrl: '/cosmos.group.v1.MsgVoteResponse',
|
|
1769
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1770
|
-
return writer;
|
|
1771
|
-
},
|
|
1772
|
-
decode(input, length) {
|
|
1773
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1774
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1775
|
-
const message = createBaseMsgVoteResponse();
|
|
1776
|
-
while (reader.pos < end) {
|
|
1777
|
-
const tag = reader.uint32();
|
|
1778
|
-
switch (tag >>> 3) {
|
|
1779
|
-
default:
|
|
1780
|
-
reader.skipType(tag & 7);
|
|
1781
|
-
break;
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
return message;
|
|
1785
|
-
},
|
|
1786
|
-
fromJSON(_) {
|
|
1787
|
-
return {};
|
|
1788
|
-
},
|
|
1789
|
-
toJSON(_) {
|
|
1790
|
-
const obj = {};
|
|
1791
|
-
return obj;
|
|
1792
|
-
},
|
|
1793
|
-
fromPartial(_) {
|
|
1794
|
-
const message = createBaseMsgVoteResponse();
|
|
1795
|
-
return message;
|
|
1796
|
-
},
|
|
1797
|
-
fromProtoMsg(message) {
|
|
1798
|
-
return MsgVoteResponse.decode(message.value);
|
|
1799
|
-
},
|
|
1800
|
-
toProto(message) {
|
|
1801
|
-
return MsgVoteResponse.encode(message).finish();
|
|
1802
|
-
},
|
|
1803
|
-
toProtoMsg(message) {
|
|
1804
|
-
return {
|
|
1805
|
-
typeUrl: '/cosmos.group.v1.MsgVoteResponse',
|
|
1806
|
-
value: MsgVoteResponse.encode(message).finish(),
|
|
1807
|
-
};
|
|
1808
|
-
},
|
|
1809
|
-
};
|
|
1810
|
-
function createBaseMsgExec() {
|
|
1811
|
-
return {
|
|
1812
|
-
proposalId: BigInt(0),
|
|
1813
|
-
executor: '',
|
|
1814
|
-
};
|
|
1815
|
-
}
|
|
1816
|
-
export const MsgExec = {
|
|
1817
|
-
typeUrl: '/cosmos.group.v1.MsgExec',
|
|
1818
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1819
|
-
if (message.proposalId !== BigInt(0)) {
|
|
1820
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1821
|
-
}
|
|
1822
|
-
if (message.executor !== '') {
|
|
1823
|
-
writer.uint32(18).string(message.executor);
|
|
1824
|
-
}
|
|
1825
|
-
return writer;
|
|
1826
|
-
},
|
|
1827
|
-
decode(input, length) {
|
|
1828
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1829
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1830
|
-
const message = createBaseMsgExec();
|
|
1831
|
-
while (reader.pos < end) {
|
|
1832
|
-
const tag = reader.uint32();
|
|
1833
|
-
switch (tag >>> 3) {
|
|
1834
|
-
case 1:
|
|
1835
|
-
message.proposalId = reader.uint64();
|
|
1836
|
-
break;
|
|
1837
|
-
case 2:
|
|
1838
|
-
message.executor = reader.string();
|
|
1839
|
-
break;
|
|
1840
|
-
default:
|
|
1841
|
-
reader.skipType(tag & 7);
|
|
1842
|
-
break;
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
return message;
|
|
1846
|
-
},
|
|
1847
|
-
fromJSON(object) {
|
|
1848
|
-
return {
|
|
1849
|
-
proposalId: isSet(object.proposalId)
|
|
1850
|
-
? BigInt(object.proposalId.toString())
|
|
1851
|
-
: BigInt(0),
|
|
1852
|
-
executor: isSet(object.executor) ? String(object.executor) : '',
|
|
1853
|
-
};
|
|
1854
|
-
},
|
|
1855
|
-
toJSON(message) {
|
|
1856
|
-
const obj = {};
|
|
1857
|
-
message.proposalId !== undefined &&
|
|
1858
|
-
(obj.proposalId = (message.proposalId || BigInt(0)).toString());
|
|
1859
|
-
message.executor !== undefined && (obj.executor = message.executor);
|
|
1860
|
-
return obj;
|
|
1861
|
-
},
|
|
1862
|
-
fromPartial(object) {
|
|
1863
|
-
const message = createBaseMsgExec();
|
|
1864
|
-
message.proposalId =
|
|
1865
|
-
object.proposalId !== undefined && object.proposalId !== null
|
|
1866
|
-
? BigInt(object.proposalId.toString())
|
|
1867
|
-
: BigInt(0);
|
|
1868
|
-
message.executor = object.executor ?? '';
|
|
1869
|
-
return message;
|
|
1870
|
-
},
|
|
1871
|
-
fromProtoMsg(message) {
|
|
1872
|
-
return MsgExec.decode(message.value);
|
|
1873
|
-
},
|
|
1874
|
-
toProto(message) {
|
|
1875
|
-
return MsgExec.encode(message).finish();
|
|
1876
|
-
},
|
|
1877
|
-
toProtoMsg(message) {
|
|
1878
|
-
return {
|
|
1879
|
-
typeUrl: '/cosmos.group.v1.MsgExec',
|
|
1880
|
-
value: MsgExec.encode(message).finish(),
|
|
1881
|
-
};
|
|
1882
|
-
},
|
|
1883
|
-
};
|
|
1884
|
-
function createBaseMsgExecResponse() {
|
|
1885
|
-
return {
|
|
1886
|
-
result: 0,
|
|
1887
|
-
};
|
|
1888
|
-
}
|
|
1889
|
-
export const MsgExecResponse = {
|
|
1890
|
-
typeUrl: '/cosmos.group.v1.MsgExecResponse',
|
|
1891
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1892
|
-
if (message.result !== 0) {
|
|
1893
|
-
writer.uint32(16).int32(message.result);
|
|
1894
|
-
}
|
|
1895
|
-
return writer;
|
|
1896
|
-
},
|
|
1897
|
-
decode(input, length) {
|
|
1898
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1899
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1900
|
-
const message = createBaseMsgExecResponse();
|
|
1901
|
-
while (reader.pos < end) {
|
|
1902
|
-
const tag = reader.uint32();
|
|
1903
|
-
switch (tag >>> 3) {
|
|
1904
|
-
case 2:
|
|
1905
|
-
message.result = reader.int32();
|
|
1906
|
-
break;
|
|
1907
|
-
default:
|
|
1908
|
-
reader.skipType(tag & 7);
|
|
1909
|
-
break;
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
return message;
|
|
1913
|
-
},
|
|
1914
|
-
fromJSON(object) {
|
|
1915
|
-
return {
|
|
1916
|
-
result: isSet(object.result)
|
|
1917
|
-
? proposalExecutorResultFromJSON(object.result)
|
|
1918
|
-
: -1,
|
|
1919
|
-
};
|
|
1920
|
-
},
|
|
1921
|
-
toJSON(message) {
|
|
1922
|
-
const obj = {};
|
|
1923
|
-
message.result !== undefined &&
|
|
1924
|
-
(obj.result = proposalExecutorResultToJSON(message.result));
|
|
1925
|
-
return obj;
|
|
1926
|
-
},
|
|
1927
|
-
fromPartial(object) {
|
|
1928
|
-
const message = createBaseMsgExecResponse();
|
|
1929
|
-
message.result = object.result ?? 0;
|
|
1930
|
-
return message;
|
|
1931
|
-
},
|
|
1932
|
-
fromProtoMsg(message) {
|
|
1933
|
-
return MsgExecResponse.decode(message.value);
|
|
1934
|
-
},
|
|
1935
|
-
toProto(message) {
|
|
1936
|
-
return MsgExecResponse.encode(message).finish();
|
|
1937
|
-
},
|
|
1938
|
-
toProtoMsg(message) {
|
|
1939
|
-
return {
|
|
1940
|
-
typeUrl: '/cosmos.group.v1.MsgExecResponse',
|
|
1941
|
-
value: MsgExecResponse.encode(message).finish(),
|
|
1942
|
-
};
|
|
1943
|
-
},
|
|
1944
|
-
};
|
|
1945
|
-
function createBaseMsgLeaveGroup() {
|
|
1946
|
-
return {
|
|
1947
|
-
address: '',
|
|
1948
|
-
groupId: BigInt(0),
|
|
1949
|
-
};
|
|
1950
|
-
}
|
|
1951
|
-
export const MsgLeaveGroup = {
|
|
1952
|
-
typeUrl: '/cosmos.group.v1.MsgLeaveGroup',
|
|
1953
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1954
|
-
if (message.address !== '') {
|
|
1955
|
-
writer.uint32(10).string(message.address);
|
|
1956
|
-
}
|
|
1957
|
-
if (message.groupId !== BigInt(0)) {
|
|
1958
|
-
writer.uint32(16).uint64(message.groupId);
|
|
1959
|
-
}
|
|
1960
|
-
return writer;
|
|
1961
|
-
},
|
|
1962
|
-
decode(input, length) {
|
|
1963
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1964
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1965
|
-
const message = createBaseMsgLeaveGroup();
|
|
1966
|
-
while (reader.pos < end) {
|
|
1967
|
-
const tag = reader.uint32();
|
|
1968
|
-
switch (tag >>> 3) {
|
|
1969
|
-
case 1:
|
|
1970
|
-
message.address = reader.string();
|
|
1971
|
-
break;
|
|
1972
|
-
case 2:
|
|
1973
|
-
message.groupId = reader.uint64();
|
|
1974
|
-
break;
|
|
1975
|
-
default:
|
|
1976
|
-
reader.skipType(tag & 7);
|
|
1977
|
-
break;
|
|
1978
|
-
}
|
|
1979
|
-
}
|
|
1980
|
-
return message;
|
|
1981
|
-
},
|
|
1982
|
-
fromJSON(object) {
|
|
1983
|
-
return {
|
|
1984
|
-
address: isSet(object.address) ? String(object.address) : '',
|
|
1985
|
-
groupId: isSet(object.groupId)
|
|
1986
|
-
? BigInt(object.groupId.toString())
|
|
1987
|
-
: BigInt(0),
|
|
1988
|
-
};
|
|
1989
|
-
},
|
|
1990
|
-
toJSON(message) {
|
|
1991
|
-
const obj = {};
|
|
1992
|
-
message.address !== undefined && (obj.address = message.address);
|
|
1993
|
-
message.groupId !== undefined &&
|
|
1994
|
-
(obj.groupId = (message.groupId || BigInt(0)).toString());
|
|
1995
|
-
return obj;
|
|
1996
|
-
},
|
|
1997
|
-
fromPartial(object) {
|
|
1998
|
-
const message = createBaseMsgLeaveGroup();
|
|
1999
|
-
message.address = object.address ?? '';
|
|
2000
|
-
message.groupId =
|
|
2001
|
-
object.groupId !== undefined && object.groupId !== null
|
|
2002
|
-
? BigInt(object.groupId.toString())
|
|
2003
|
-
: BigInt(0);
|
|
2004
|
-
return message;
|
|
2005
|
-
},
|
|
2006
|
-
fromProtoMsg(message) {
|
|
2007
|
-
return MsgLeaveGroup.decode(message.value);
|
|
2008
|
-
},
|
|
2009
|
-
toProto(message) {
|
|
2010
|
-
return MsgLeaveGroup.encode(message).finish();
|
|
2011
|
-
},
|
|
2012
|
-
toProtoMsg(message) {
|
|
2013
|
-
return {
|
|
2014
|
-
typeUrl: '/cosmos.group.v1.MsgLeaveGroup',
|
|
2015
|
-
value: MsgLeaveGroup.encode(message).finish(),
|
|
2016
|
-
};
|
|
2017
|
-
},
|
|
2018
|
-
};
|
|
2019
|
-
function createBaseMsgLeaveGroupResponse() {
|
|
2020
|
-
return {};
|
|
2021
|
-
}
|
|
2022
|
-
export const MsgLeaveGroupResponse = {
|
|
2023
|
-
typeUrl: '/cosmos.group.v1.MsgLeaveGroupResponse',
|
|
2024
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
2025
|
-
return writer;
|
|
2026
|
-
},
|
|
2027
|
-
decode(input, length) {
|
|
2028
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2029
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2030
|
-
const message = createBaseMsgLeaveGroupResponse();
|
|
2031
|
-
while (reader.pos < end) {
|
|
2032
|
-
const tag = reader.uint32();
|
|
2033
|
-
switch (tag >>> 3) {
|
|
2034
|
-
default:
|
|
2035
|
-
reader.skipType(tag & 7);
|
|
2036
|
-
break;
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
return message;
|
|
2040
|
-
},
|
|
2041
|
-
fromJSON(_) {
|
|
2042
|
-
return {};
|
|
2043
|
-
},
|
|
2044
|
-
toJSON(_) {
|
|
2045
|
-
const obj = {};
|
|
2046
|
-
return obj;
|
|
2047
|
-
},
|
|
2048
|
-
fromPartial(_) {
|
|
2049
|
-
const message = createBaseMsgLeaveGroupResponse();
|
|
2050
|
-
return message;
|
|
2051
|
-
},
|
|
2052
|
-
fromProtoMsg(message) {
|
|
2053
|
-
return MsgLeaveGroupResponse.decode(message.value);
|
|
2054
|
-
},
|
|
2055
|
-
toProto(message) {
|
|
2056
|
-
return MsgLeaveGroupResponse.encode(message).finish();
|
|
2057
|
-
},
|
|
2058
|
-
toProtoMsg(message) {
|
|
2059
|
-
return {
|
|
2060
|
-
typeUrl: '/cosmos.group.v1.MsgLeaveGroupResponse',
|
|
2061
|
-
value: MsgLeaveGroupResponse.encode(message).finish(),
|
|
2062
|
-
};
|
|
2063
|
-
},
|
|
2064
|
-
};
|
|
2065
|
-
export const Cosmos_groupv1DecisionPolicy_InterfaceDecoder = (input) => {
|
|
2066
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2067
|
-
const data = Any.decode(reader, reader.uint32());
|
|
2068
|
-
switch (data.typeUrl) {
|
|
2069
|
-
default:
|
|
2070
|
-
return data;
|
|
2071
|
-
}
|
|
2072
|
-
};
|
|
2073
|
-
//# sourceMappingURL=tx.js.map
|
|
1
|
+
import{MemberRequest as o,VoteOption as e,ProposalExecutorResult as t,voteOptionFromJSON as r,voteOptionToJSON as s,proposalExecutorResultFromJSON as i,proposalExecutorResultToJSON as n}from"./types.js";import{Any as d}from"../../../google/protobuf/any.js";import{BinaryReader as a,BinaryWriter as p}from"../../../binary.js";import{isSet as c}from"../../../helpers.js";import{}from"../../../json-safe.js";export var Exec;!function(o){o[o.EXEC_UNSPECIFIED=0]="EXEC_UNSPECIFIED",o[o.EXEC_TRY=1]="EXEC_TRY",o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Exec||(Exec={}));export const ExecSDKType=Exec;export function execFromJSON(o){switch(o){case 0:case"EXEC_UNSPECIFIED":return Exec.EXEC_UNSPECIFIED;case 1:case"EXEC_TRY":return Exec.EXEC_TRY;default:return Exec.UNRECOGNIZED}}export function execToJSON(o){switch(o){case Exec.EXEC_UNSPECIFIED:return"EXEC_UNSPECIFIED";case Exec.EXEC_TRY:return"EXEC_TRY";case Exec.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export const MsgCreateGroup={typeUrl:"/cosmos.group.v1.MsgCreateGroup",encode(e,t=p.create()){""!==e.admin&&t.uint32(10).string(e.admin);for(const r of e.members)o.encode(r,t.uint32(18).fork()).ldelim();return""!==e.metadata&&t.uint32(26).string(e.metadata),t},decode(e,t){const r=e instanceof a?e:new a(e);let s=void 0===t?r.len:r.pos+t;const i={admin:"",members:[],metadata:""};for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.members.push(o.decode(r,r.uint32()));break;case 3:i.metadata=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({admin:c(e.admin)?String(e.admin):"",members:Array.isArray(e?.members)?e.members.map((e=>o.fromJSON(e))):[],metadata:c(e.metadata)?String(e.metadata):""}),toJSON(e){const t={};return void 0!==e.admin&&(t.admin=e.admin),e.members?t.members=e.members.map((e=>e?o.toJSON(e):void 0)):t.members=[],void 0!==e.metadata&&(t.metadata=e.metadata),t},fromPartial(e){const t={admin:"",members:[],metadata:""};return t.admin=e.admin??"",t.members=e.members?.map((e=>o.fromPartial(e)))||[],t.metadata=e.metadata??"",t},fromProtoMsg:o=>MsgCreateGroup.decode(o.value),toProto:o=>MsgCreateGroup.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgCreateGroup",value:MsgCreateGroup.encode(o).finish()})};function u(){return{groupId:BigInt(0)}}export const MsgCreateGroupResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupResponse",encode:(o,e=p.create())=>(o.groupId!==BigInt(0)&&e.uint32(8).uint64(o.groupId),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=u();for(;t.pos<r;){const o=t.uint32();if(o>>>3==1)s.groupId=t.uint64();else t.skipType(7&o)}return s},fromJSON:o=>({groupId:c(o.groupId)?BigInt(o.groupId.toString()):BigInt(0)}),toJSON(o){const e={};return void 0!==o.groupId&&(e.groupId=(o.groupId||BigInt(0)).toString()),e},fromPartial(o){const e=u();return e.groupId=void 0!==o.groupId&&null!==o.groupId?BigInt(o.groupId.toString()):BigInt(0),e},fromProtoMsg:o=>MsgCreateGroupResponse.decode(o.value),toProto:o=>MsgCreateGroupResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgCreateGroupResponse",value:MsgCreateGroupResponse.encode(o).finish()})};function g(){return{admin:"",groupId:BigInt(0),memberUpdates:[]}}export const MsgUpdateGroupMembers={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembers",encode(e,t=p.create()){""!==e.admin&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId);for(const r of e.memberUpdates)o.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){const r=e instanceof a?e:new a(e);let s=void 0===t?r.len:r.pos+t;const i=g();for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.groupId=r.uint64();break;case 3:i.memberUpdates.push(o.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return i},fromJSON:e=>({admin:c(e.admin)?String(e.admin):"",groupId:c(e.groupId)?BigInt(e.groupId.toString()):BigInt(0),memberUpdates:Array.isArray(e?.memberUpdates)?e.memberUpdates.map((e=>o.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.memberUpdates?t.memberUpdates=e.memberUpdates.map((e=>e?o.toJSON(e):void 0)):t.memberUpdates=[],t},fromPartial(e){const t=g();return t.admin=e.admin??"",t.groupId=void 0!==e.groupId&&null!==e.groupId?BigInt(e.groupId.toString()):BigInt(0),t.memberUpdates=e.memberUpdates?.map((e=>o.fromPartial(e)))||[],t},fromProtoMsg:o=>MsgUpdateGroupMembers.decode(o.value),toProto:o=>MsgUpdateGroupMembers.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembers",value:MsgUpdateGroupMembers.encode(o).finish()})};export const MsgUpdateGroupMembersResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembersResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgUpdateGroupMembersResponse.decode(o.value),toProto:o=>MsgUpdateGroupMembersResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembersResponse",value:MsgUpdateGroupMembersResponse.encode(o).finish()})};function l(){return{admin:"",groupId:BigInt(0),newAdmin:""}}export const MsgUpdateGroupAdmin={typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdmin",encode:(o,e=p.create())=>(""!==o.admin&&e.uint32(10).string(o.admin),o.groupId!==BigInt(0)&&e.uint32(16).uint64(o.groupId),""!==o.newAdmin&&e.uint32(26).string(o.newAdmin),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=l();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.admin=t.string();break;case 2:s.groupId=t.uint64();break;case 3:s.newAdmin=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({admin:c(o.admin)?String(o.admin):"",groupId:c(o.groupId)?BigInt(o.groupId.toString()):BigInt(0),newAdmin:c(o.newAdmin)?String(o.newAdmin):""}),toJSON(o){const e={};return void 0!==o.admin&&(e.admin=o.admin),void 0!==o.groupId&&(e.groupId=(o.groupId||BigInt(0)).toString()),void 0!==o.newAdmin&&(e.newAdmin=o.newAdmin),e},fromPartial(o){const e=l();return e.admin=o.admin??"",e.groupId=void 0!==o.groupId&&null!==o.groupId?BigInt(o.groupId.toString()):BigInt(0),e.newAdmin=o.newAdmin??"",e},fromProtoMsg:o=>MsgUpdateGroupAdmin.decode(o.value),toProto:o=>MsgUpdateGroupAdmin.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdmin",value:MsgUpdateGroupAdmin.encode(o).finish()})};export const MsgUpdateGroupAdminResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdminResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgUpdateGroupAdminResponse.decode(o.value),toProto:o=>MsgUpdateGroupAdminResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdminResponse",value:MsgUpdateGroupAdminResponse.encode(o).finish()})};function m(){return{admin:"",groupId:BigInt(0),metadata:""}}export const MsgUpdateGroupMetadata={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadata",encode:(o,e=p.create())=>(""!==o.admin&&e.uint32(10).string(o.admin),o.groupId!==BigInt(0)&&e.uint32(16).uint64(o.groupId),""!==o.metadata&&e.uint32(26).string(o.metadata),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=m();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.admin=t.string();break;case 2:s.groupId=t.uint64();break;case 3:s.metadata=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({admin:c(o.admin)?String(o.admin):"",groupId:c(o.groupId)?BigInt(o.groupId.toString()):BigInt(0),metadata:c(o.metadata)?String(o.metadata):""}),toJSON(o){const e={};return void 0!==o.admin&&(e.admin=o.admin),void 0!==o.groupId&&(e.groupId=(o.groupId||BigInt(0)).toString()),void 0!==o.metadata&&(e.metadata=o.metadata),e},fromPartial(o){const e=m();return e.admin=o.admin??"",e.groupId=void 0!==o.groupId&&null!==o.groupId?BigInt(o.groupId.toString()):BigInt(0),e.metadata=o.metadata??"",e},fromProtoMsg:o=>MsgUpdateGroupMetadata.decode(o.value),toProto:o=>MsgUpdateGroupMetadata.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadata",value:MsgUpdateGroupMetadata.encode(o).finish()})};export const MsgUpdateGroupMetadataResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadataResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgUpdateGroupMetadataResponse.decode(o.value),toProto:o=>MsgUpdateGroupMetadataResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadataResponse",value:MsgUpdateGroupMetadataResponse.encode(o).finish()})};function P(){return{admin:"",groupId:BigInt(0),metadata:"",decisionPolicy:void 0}}export const MsgCreateGroupPolicy={typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicy",encode:(o,e=p.create())=>(""!==o.admin&&e.uint32(10).string(o.admin),o.groupId!==BigInt(0)&&e.uint32(16).uint64(o.groupId),""!==o.metadata&&e.uint32(26).string(o.metadata),void 0!==o.decisionPolicy&&d.encode(o.decisionPolicy,e.uint32(34).fork()).ldelim(),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=P();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.admin=t.string();break;case 2:s.groupId=t.uint64();break;case 3:s.metadata=t.string();break;case 4:s.decisionPolicy=Cosmos_groupv1DecisionPolicy_InterfaceDecoder(t);break;default:t.skipType(7&o)}}return s},fromJSON:o=>({admin:c(o.admin)?String(o.admin):"",groupId:c(o.groupId)?BigInt(o.groupId.toString()):BigInt(0),metadata:c(o.metadata)?String(o.metadata):"",decisionPolicy:c(o.decisionPolicy)?d.fromJSON(o.decisionPolicy):void 0}),toJSON(o){const e={};return void 0!==o.admin&&(e.admin=o.admin),void 0!==o.groupId&&(e.groupId=(o.groupId||BigInt(0)).toString()),void 0!==o.metadata&&(e.metadata=o.metadata),void 0!==o.decisionPolicy&&(e.decisionPolicy=o.decisionPolicy?d.toJSON(o.decisionPolicy):void 0),e},fromPartial(o){const e=P();return e.admin=o.admin??"",e.groupId=void 0!==o.groupId&&null!==o.groupId?BigInt(o.groupId.toString()):BigInt(0),e.metadata=o.metadata??"",e.decisionPolicy=void 0!==o.decisionPolicy&&null!==o.decisionPolicy?d.fromPartial(o.decisionPolicy):void 0,e},fromProtoMsg:o=>MsgCreateGroupPolicy.decode(o.value),toProto:o=>MsgCreateGroupPolicy.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicy",value:MsgCreateGroupPolicy.encode(o).finish()})};export const MsgCreateGroupPolicyResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicyResponse",encode:(o,e=p.create())=>(""!==o.address&&e.uint32(10).string(o.address),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={address:""};for(;t.pos<r;){const o=t.uint32();if(o>>>3==1)s.address=t.string();else t.skipType(7&o)}return s},fromJSON:o=>({address:c(o.address)?String(o.address):""}),toJSON(o){const e={};return void 0!==o.address&&(e.address=o.address),e},fromPartial(o){const e={address:""};return e.address=o.address??"",e},fromProtoMsg:o=>MsgCreateGroupPolicyResponse.decode(o.value),toProto:o=>MsgCreateGroupPolicyResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicyResponse",value:MsgCreateGroupPolicyResponse.encode(o).finish()})};export const MsgUpdateGroupPolicyAdmin={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",encode:(o,e=p.create())=>(""!==o.admin&&e.uint32(10).string(o.admin),""!==o.groupPolicyAddress&&e.uint32(18).string(o.groupPolicyAddress),""!==o.newAdmin&&e.uint32(26).string(o.newAdmin),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={admin:"",groupPolicyAddress:"",newAdmin:""};for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.admin=t.string();break;case 2:s.groupPolicyAddress=t.string();break;case 3:s.newAdmin=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({admin:c(o.admin)?String(o.admin):"",groupPolicyAddress:c(o.groupPolicyAddress)?String(o.groupPolicyAddress):"",newAdmin:c(o.newAdmin)?String(o.newAdmin):""}),toJSON(o){const e={};return void 0!==o.admin&&(e.admin=o.admin),void 0!==o.groupPolicyAddress&&(e.groupPolicyAddress=o.groupPolicyAddress),void 0!==o.newAdmin&&(e.newAdmin=o.newAdmin),e},fromPartial(o){const e={admin:"",groupPolicyAddress:"",newAdmin:""};return e.admin=o.admin??"",e.groupPolicyAddress=o.groupPolicyAddress??"",e.newAdmin=o.newAdmin??"",e},fromProtoMsg:o=>MsgUpdateGroupPolicyAdmin.decode(o.value),toProto:o=>MsgUpdateGroupPolicyAdmin.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",value:MsgUpdateGroupPolicyAdmin.encode(o).finish()})};export const MsgCreateGroupWithPolicy={typeUrl:"/cosmos.group.v1.MsgCreateGroupWithPolicy",encode(e,t=p.create()){""!==e.admin&&t.uint32(10).string(e.admin);for(const r of e.members)o.encode(r,t.uint32(18).fork()).ldelim();return""!==e.groupMetadata&&t.uint32(26).string(e.groupMetadata),""!==e.groupPolicyMetadata&&t.uint32(34).string(e.groupPolicyMetadata),!0===e.groupPolicyAsAdmin&&t.uint32(40).bool(e.groupPolicyAsAdmin),void 0!==e.decisionPolicy&&d.encode(e.decisionPolicy,t.uint32(50).fork()).ldelim(),t},decode(e,t){const r=e instanceof a?e:new a(e);let s=void 0===t?r.len:r.pos+t;const i={admin:"",members:[],groupMetadata:"",groupPolicyMetadata:"",groupPolicyAsAdmin:!1,decisionPolicy:void 0};for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.members.push(o.decode(r,r.uint32()));break;case 3:i.groupMetadata=r.string();break;case 4:i.groupPolicyMetadata=r.string();break;case 5:i.groupPolicyAsAdmin=r.bool();break;case 6:i.decisionPolicy=Cosmos_groupv1DecisionPolicy_InterfaceDecoder(r);break;default:r.skipType(7&e)}}return i},fromJSON:e=>({admin:c(e.admin)?String(e.admin):"",members:Array.isArray(e?.members)?e.members.map((e=>o.fromJSON(e))):[],groupMetadata:c(e.groupMetadata)?String(e.groupMetadata):"",groupPolicyMetadata:c(e.groupPolicyMetadata)?String(e.groupPolicyMetadata):"",groupPolicyAsAdmin:!!c(e.groupPolicyAsAdmin)&&Boolean(e.groupPolicyAsAdmin),decisionPolicy:c(e.decisionPolicy)?d.fromJSON(e.decisionPolicy):void 0}),toJSON(e){const t={};return void 0!==e.admin&&(t.admin=e.admin),e.members?t.members=e.members.map((e=>e?o.toJSON(e):void 0)):t.members=[],void 0!==e.groupMetadata&&(t.groupMetadata=e.groupMetadata),void 0!==e.groupPolicyMetadata&&(t.groupPolicyMetadata=e.groupPolicyMetadata),void 0!==e.groupPolicyAsAdmin&&(t.groupPolicyAsAdmin=e.groupPolicyAsAdmin),void 0!==e.decisionPolicy&&(t.decisionPolicy=e.decisionPolicy?d.toJSON(e.decisionPolicy):void 0),t},fromPartial(e){const t={admin:"",members:[],groupMetadata:"",groupPolicyMetadata:"",groupPolicyAsAdmin:!1,decisionPolicy:void 0};return t.admin=e.admin??"",t.members=e.members?.map((e=>o.fromPartial(e)))||[],t.groupMetadata=e.groupMetadata??"",t.groupPolicyMetadata=e.groupPolicyMetadata??"",t.groupPolicyAsAdmin=e.groupPolicyAsAdmin??!1,t.decisionPolicy=void 0!==e.decisionPolicy&&null!==e.decisionPolicy?d.fromPartial(e.decisionPolicy):void 0,t},fromProtoMsg:o=>MsgCreateGroupWithPolicy.decode(o.value),toProto:o=>MsgCreateGroupWithPolicy.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgCreateGroupWithPolicy",value:MsgCreateGroupWithPolicy.encode(o).finish()})};function y(){return{groupId:BigInt(0),groupPolicyAddress:""}}export const MsgCreateGroupWithPolicyResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",encode:(o,e=p.create())=>(o.groupId!==BigInt(0)&&e.uint32(8).uint64(o.groupId),""!==o.groupPolicyAddress&&e.uint32(18).string(o.groupPolicyAddress),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=y();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.groupId=t.uint64();break;case 2:s.groupPolicyAddress=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({groupId:c(o.groupId)?BigInt(o.groupId.toString()):BigInt(0),groupPolicyAddress:c(o.groupPolicyAddress)?String(o.groupPolicyAddress):""}),toJSON(o){const e={};return void 0!==o.groupId&&(e.groupId=(o.groupId||BigInt(0)).toString()),void 0!==o.groupPolicyAddress&&(e.groupPolicyAddress=o.groupPolicyAddress),e},fromPartial(o){const e=y();return e.groupId=void 0!==o.groupId&&null!==o.groupId?BigInt(o.groupId.toString()):BigInt(0),e.groupPolicyAddress=o.groupPolicyAddress??"",e},fromProtoMsg:o=>MsgCreateGroupWithPolicyResponse.decode(o.value),toProto:o=>MsgCreateGroupWithPolicyResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",value:MsgCreateGroupWithPolicyResponse.encode(o).finish()})};export const MsgUpdateGroupPolicyAdminResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgUpdateGroupPolicyAdminResponse.decode(o.value),toProto:o=>MsgUpdateGroupPolicyAdminResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",value:MsgUpdateGroupPolicyAdminResponse.encode(o).finish()})};export const MsgUpdateGroupPolicyDecisionPolicy={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",encode:(o,e=p.create())=>(""!==o.admin&&e.uint32(10).string(o.admin),""!==o.groupPolicyAddress&&e.uint32(18).string(o.groupPolicyAddress),void 0!==o.decisionPolicy&&d.encode(o.decisionPolicy,e.uint32(26).fork()).ldelim(),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={admin:"",groupPolicyAddress:"",decisionPolicy:void 0};for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.admin=t.string();break;case 2:s.groupPolicyAddress=t.string();break;case 3:s.decisionPolicy=Cosmos_groupv1DecisionPolicy_InterfaceDecoder(t);break;default:t.skipType(7&o)}}return s},fromJSON:o=>({admin:c(o.admin)?String(o.admin):"",groupPolicyAddress:c(o.groupPolicyAddress)?String(o.groupPolicyAddress):"",decisionPolicy:c(o.decisionPolicy)?d.fromJSON(o.decisionPolicy):void 0}),toJSON(o){const e={};return void 0!==o.admin&&(e.admin=o.admin),void 0!==o.groupPolicyAddress&&(e.groupPolicyAddress=o.groupPolicyAddress),void 0!==o.decisionPolicy&&(e.decisionPolicy=o.decisionPolicy?d.toJSON(o.decisionPolicy):void 0),e},fromPartial(o){const e={admin:"",groupPolicyAddress:"",decisionPolicy:void 0};return e.admin=o.admin??"",e.groupPolicyAddress=o.groupPolicyAddress??"",e.decisionPolicy=void 0!==o.decisionPolicy&&null!==o.decisionPolicy?d.fromPartial(o.decisionPolicy):void 0,e},fromProtoMsg:o=>MsgUpdateGroupPolicyDecisionPolicy.decode(o.value),toProto:o=>MsgUpdateGroupPolicyDecisionPolicy.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",value:MsgUpdateGroupPolicyDecisionPolicy.encode(o).finish()})};export const MsgUpdateGroupPolicyDecisionPolicyResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgUpdateGroupPolicyDecisionPolicyResponse.decode(o.value),toProto:o=>MsgUpdateGroupPolicyDecisionPolicyResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",value:MsgUpdateGroupPolicyDecisionPolicyResponse.encode(o).finish()})};export const MsgUpdateGroupPolicyMetadata={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",encode:(o,e=p.create())=>(""!==o.admin&&e.uint32(10).string(o.admin),""!==o.groupPolicyAddress&&e.uint32(18).string(o.groupPolicyAddress),""!==o.metadata&&e.uint32(26).string(o.metadata),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={admin:"",groupPolicyAddress:"",metadata:""};for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.admin=t.string();break;case 2:s.groupPolicyAddress=t.string();break;case 3:s.metadata=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({admin:c(o.admin)?String(o.admin):"",groupPolicyAddress:c(o.groupPolicyAddress)?String(o.groupPolicyAddress):"",metadata:c(o.metadata)?String(o.metadata):""}),toJSON(o){const e={};return void 0!==o.admin&&(e.admin=o.admin),void 0!==o.groupPolicyAddress&&(e.groupPolicyAddress=o.groupPolicyAddress),void 0!==o.metadata&&(e.metadata=o.metadata),e},fromPartial(o){const e={admin:"",groupPolicyAddress:"",metadata:""};return e.admin=o.admin??"",e.groupPolicyAddress=o.groupPolicyAddress??"",e.metadata=o.metadata??"",e},fromProtoMsg:o=>MsgUpdateGroupPolicyMetadata.decode(o.value),toProto:o=>MsgUpdateGroupPolicyMetadata.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",value:MsgUpdateGroupPolicyMetadata.encode(o).finish()})};export const MsgUpdateGroupPolicyMetadataResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgUpdateGroupPolicyMetadataResponse.decode(o.value),toProto:o=>MsgUpdateGroupPolicyMetadataResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",value:MsgUpdateGroupPolicyMetadataResponse.encode(o).finish()})};export const MsgSubmitProposal={typeUrl:"/cosmos.group.v1.MsgSubmitProposal",encode(o,e=p.create()){""!==o.groupPolicyAddress&&e.uint32(10).string(o.groupPolicyAddress);for(const t of o.proposers)e.uint32(18).string(t);""!==o.metadata&&e.uint32(26).string(o.metadata);for(const t of o.messages)d.encode(t,e.uint32(34).fork()).ldelim();return 0!==o.exec&&e.uint32(40).int32(o.exec),e},decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={groupPolicyAddress:"",proposers:[],metadata:"",messages:[],exec:0};for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.groupPolicyAddress=t.string();break;case 2:s.proposers.push(t.string());break;case 3:s.metadata=t.string();break;case 4:s.messages.push(d.decode(t,t.uint32()));break;case 5:s.exec=t.int32();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({groupPolicyAddress:c(o.groupPolicyAddress)?String(o.groupPolicyAddress):"",proposers:Array.isArray(o?.proposers)?o.proposers.map((o=>String(o))):[],metadata:c(o.metadata)?String(o.metadata):"",messages:Array.isArray(o?.messages)?o.messages.map((o=>d.fromJSON(o))):[],exec:c(o.exec)?execFromJSON(o.exec):-1}),toJSON(o){const e={};return void 0!==o.groupPolicyAddress&&(e.groupPolicyAddress=o.groupPolicyAddress),o.proposers?e.proposers=o.proposers.map((o=>o)):e.proposers=[],void 0!==o.metadata&&(e.metadata=o.metadata),o.messages?e.messages=o.messages.map((o=>o?d.toJSON(o):void 0)):e.messages=[],void 0!==o.exec&&(e.exec=execToJSON(o.exec)),e},fromPartial(o){const e={groupPolicyAddress:"",proposers:[],metadata:"",messages:[],exec:0};return e.groupPolicyAddress=o.groupPolicyAddress??"",e.proposers=o.proposers?.map((o=>o))||[],e.metadata=o.metadata??"",e.messages=o.messages?.map((o=>d.fromPartial(o)))||[],e.exec=o.exec??0,e},fromProtoMsg:o=>MsgSubmitProposal.decode(o.value),toProto:o=>MsgSubmitProposal.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgSubmitProposal",value:MsgSubmitProposal.encode(o).finish()})};function M(){return{proposalId:BigInt(0)}}export const MsgSubmitProposalResponse={typeUrl:"/cosmos.group.v1.MsgSubmitProposalResponse",encode:(o,e=p.create())=>(o.proposalId!==BigInt(0)&&e.uint32(8).uint64(o.proposalId),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=M();for(;t.pos<r;){const o=t.uint32();if(o>>>3==1)s.proposalId=t.uint64();else t.skipType(7&o)}return s},fromJSON:o=>({proposalId:c(o.proposalId)?BigInt(o.proposalId.toString()):BigInt(0)}),toJSON(o){const e={};return void 0!==o.proposalId&&(e.proposalId=(o.proposalId||BigInt(0)).toString()),e},fromPartial(o){const e=M();return e.proposalId=void 0!==o.proposalId&&null!==o.proposalId?BigInt(o.proposalId.toString()):BigInt(0),e},fromProtoMsg:o=>MsgSubmitProposalResponse.decode(o.value),toProto:o=>MsgSubmitProposalResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgSubmitProposalResponse",value:MsgSubmitProposalResponse.encode(o).finish()})};function f(){return{proposalId:BigInt(0),address:""}}export const MsgWithdrawProposal={typeUrl:"/cosmos.group.v1.MsgWithdrawProposal",encode:(o,e=p.create())=>(o.proposalId!==BigInt(0)&&e.uint32(8).uint64(o.proposalId),""!==o.address&&e.uint32(18).string(o.address),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=f();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.proposalId=t.uint64();break;case 2:s.address=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({proposalId:c(o.proposalId)?BigInt(o.proposalId.toString()):BigInt(0),address:c(o.address)?String(o.address):""}),toJSON(o){const e={};return void 0!==o.proposalId&&(e.proposalId=(o.proposalId||BigInt(0)).toString()),void 0!==o.address&&(e.address=o.address),e},fromPartial(o){const e=f();return e.proposalId=void 0!==o.proposalId&&null!==o.proposalId?BigInt(o.proposalId.toString()):BigInt(0),e.address=o.address??"",e},fromProtoMsg:o=>MsgWithdrawProposal.decode(o.value),toProto:o=>MsgWithdrawProposal.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgWithdrawProposal",value:MsgWithdrawProposal.encode(o).finish()})};export const MsgWithdrawProposalResponse={typeUrl:"/cosmos.group.v1.MsgWithdrawProposalResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgWithdrawProposalResponse.decode(o.value),toProto:o=>MsgWithdrawProposalResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgWithdrawProposalResponse",value:MsgWithdrawProposalResponse.encode(o).finish()})};function v(){return{proposalId:BigInt(0),voter:"",option:0,metadata:"",exec:0}}export const MsgVote={typeUrl:"/cosmos.group.v1.MsgVote",encode:(o,e=p.create())=>(o.proposalId!==BigInt(0)&&e.uint32(8).uint64(o.proposalId),""!==o.voter&&e.uint32(18).string(o.voter),0!==o.option&&e.uint32(24).int32(o.option),""!==o.metadata&&e.uint32(34).string(o.metadata),0!==o.exec&&e.uint32(40).int32(o.exec),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=v();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.proposalId=t.uint64();break;case 2:s.voter=t.string();break;case 3:s.option=t.int32();break;case 4:s.metadata=t.string();break;case 5:s.exec=t.int32();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({proposalId:c(o.proposalId)?BigInt(o.proposalId.toString()):BigInt(0),voter:c(o.voter)?String(o.voter):"",option:c(o.option)?r(o.option):-1,metadata:c(o.metadata)?String(o.metadata):"",exec:c(o.exec)?execFromJSON(o.exec):-1}),toJSON(o){const e={};return void 0!==o.proposalId&&(e.proposalId=(o.proposalId||BigInt(0)).toString()),void 0!==o.voter&&(e.voter=o.voter),void 0!==o.option&&(e.option=s(o.option)),void 0!==o.metadata&&(e.metadata=o.metadata),void 0!==o.exec&&(e.exec=execToJSON(o.exec)),e},fromPartial(o){const e=v();return e.proposalId=void 0!==o.proposalId&&null!==o.proposalId?BigInt(o.proposalId.toString()):BigInt(0),e.voter=o.voter??"",e.option=o.option??0,e.metadata=o.metadata??"",e.exec=o.exec??0,e},fromProtoMsg:o=>MsgVote.decode(o.value),toProto:o=>MsgVote.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgVote",value:MsgVote.encode(o).finish()})};export const MsgVoteResponse={typeUrl:"/cosmos.group.v1.MsgVoteResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgVoteResponse.decode(o.value),toProto:o=>MsgVoteResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgVoteResponse",value:MsgVoteResponse.encode(o).finish()})};function I(){return{proposalId:BigInt(0),executor:""}}export const MsgExec={typeUrl:"/cosmos.group.v1.MsgExec",encode:(o,e=p.create())=>(o.proposalId!==BigInt(0)&&e.uint32(8).uint64(o.proposalId),""!==o.executor&&e.uint32(18).string(o.executor),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=I();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.proposalId=t.uint64();break;case 2:s.executor=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({proposalId:c(o.proposalId)?BigInt(o.proposalId.toString()):BigInt(0),executor:c(o.executor)?String(o.executor):""}),toJSON(o){const e={};return void 0!==o.proposalId&&(e.proposalId=(o.proposalId||BigInt(0)).toString()),void 0!==o.executor&&(e.executor=o.executor),e},fromPartial(o){const e=I();return e.proposalId=void 0!==o.proposalId&&null!==o.proposalId?BigInt(o.proposalId.toString()):BigInt(0),e.executor=o.executor??"",e},fromProtoMsg:o=>MsgExec.decode(o.value),toProto:o=>MsgExec.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgExec",value:MsgExec.encode(o).finish()})};export const MsgExecResponse={typeUrl:"/cosmos.group.v1.MsgExecResponse",encode:(o,e=p.create())=>(0!==o.result&&e.uint32(16).int32(o.result),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={result:0};for(;t.pos<r;){const o=t.uint32();if(o>>>3==2)s.result=t.int32();else t.skipType(7&o)}return s},fromJSON:o=>({result:c(o.result)?i(o.result):-1}),toJSON(o){const e={};return void 0!==o.result&&(e.result=n(o.result)),e},fromPartial(o){const e={result:0};return e.result=o.result??0,e},fromProtoMsg:o=>MsgExecResponse.decode(o.value),toProto:o=>MsgExecResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgExecResponse",value:MsgExecResponse.encode(o).finish()})};function S(){return{address:"",groupId:BigInt(0)}}export const MsgLeaveGroup={typeUrl:"/cosmos.group.v1.MsgLeaveGroup",encode:(o,e=p.create())=>(""!==o.address&&e.uint32(10).string(o.address),o.groupId!==BigInt(0)&&e.uint32(16).uint64(o.groupId),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s=S();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:s.address=t.string();break;case 2:s.groupId=t.uint64();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({address:c(o.address)?String(o.address):"",groupId:c(o.groupId)?BigInt(o.groupId.toString()):BigInt(0)}),toJSON(o){const e={};return void 0!==o.address&&(e.address=o.address),void 0!==o.groupId&&(e.groupId=(o.groupId||BigInt(0)).toString()),e},fromPartial(o){const e=S();return e.address=o.address??"",e.groupId=void 0!==o.groupId&&null!==o.groupId?BigInt(o.groupId.toString()):BigInt(0),e},fromProtoMsg:o=>MsgLeaveGroup.decode(o.value),toProto:o=>MsgLeaveGroup.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgLeaveGroup",value:MsgLeaveGroup.encode(o).finish()})};export const MsgLeaveGroupResponse={typeUrl:"/cosmos.group.v1.MsgLeaveGroupResponse",encode:(o,e=p.create())=>e,decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const s={};for(;t.pos<r;){const o=t.uint32();t.skipType(7&o)}return s},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgLeaveGroupResponse.decode(o.value),toProto:o=>MsgLeaveGroupResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.group.v1.MsgLeaveGroupResponse",value:MsgLeaveGroupResponse.encode(o).finish()})};export const Cosmos_groupv1DecisionPolicy_InterfaceDecoder=o=>{const e=o instanceof a?o:new a(o),t=d.decode(e,e.uint32());return t.typeUrl,t};
|