@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,441 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { PageRequest, PageResponse, } from '../../cosmos/base/query/v1beta1/pagination.js';
|
|
3
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
4
|
-
import { isSet } from '../../helpers.js';
|
|
5
|
-
import {} from '../../json-safe.js';
|
|
6
|
-
function createBaseQueryDataRequest() {
|
|
7
|
-
return {
|
|
8
|
-
path: '',
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export const QueryDataRequest = {
|
|
12
|
-
typeUrl: '/agoric.vstorage.QueryDataRequest',
|
|
13
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
14
|
-
if (message.path !== '') {
|
|
15
|
-
writer.uint32(10).string(message.path);
|
|
16
|
-
}
|
|
17
|
-
return writer;
|
|
18
|
-
},
|
|
19
|
-
decode(input, length) {
|
|
20
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
21
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
-
const message = createBaseQueryDataRequest();
|
|
23
|
-
while (reader.pos < end) {
|
|
24
|
-
const tag = reader.uint32();
|
|
25
|
-
switch (tag >>> 3) {
|
|
26
|
-
case 1:
|
|
27
|
-
message.path = reader.string();
|
|
28
|
-
break;
|
|
29
|
-
default:
|
|
30
|
-
reader.skipType(tag & 7);
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return message;
|
|
35
|
-
},
|
|
36
|
-
fromJSON(object) {
|
|
37
|
-
return {
|
|
38
|
-
path: isSet(object.path) ? String(object.path) : '',
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
toJSON(message) {
|
|
42
|
-
const obj = {};
|
|
43
|
-
message.path !== undefined && (obj.path = message.path);
|
|
44
|
-
return obj;
|
|
45
|
-
},
|
|
46
|
-
fromPartial(object) {
|
|
47
|
-
const message = createBaseQueryDataRequest();
|
|
48
|
-
message.path = object.path ?? '';
|
|
49
|
-
return message;
|
|
50
|
-
},
|
|
51
|
-
fromProtoMsg(message) {
|
|
52
|
-
return QueryDataRequest.decode(message.value);
|
|
53
|
-
},
|
|
54
|
-
toProto(message) {
|
|
55
|
-
return QueryDataRequest.encode(message).finish();
|
|
56
|
-
},
|
|
57
|
-
toProtoMsg(message) {
|
|
58
|
-
return {
|
|
59
|
-
typeUrl: '/agoric.vstorage.QueryDataRequest',
|
|
60
|
-
value: QueryDataRequest.encode(message).finish(),
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
function createBaseQueryDataResponse() {
|
|
65
|
-
return {
|
|
66
|
-
value: '',
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export const QueryDataResponse = {
|
|
70
|
-
typeUrl: '/agoric.vstorage.QueryDataResponse',
|
|
71
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
72
|
-
if (message.value !== '') {
|
|
73
|
-
writer.uint32(10).string(message.value);
|
|
74
|
-
}
|
|
75
|
-
return writer;
|
|
76
|
-
},
|
|
77
|
-
decode(input, length) {
|
|
78
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
79
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
80
|
-
const message = createBaseQueryDataResponse();
|
|
81
|
-
while (reader.pos < end) {
|
|
82
|
-
const tag = reader.uint32();
|
|
83
|
-
switch (tag >>> 3) {
|
|
84
|
-
case 1:
|
|
85
|
-
message.value = 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
|
-
value: isSet(object.value) ? String(object.value) : '',
|
|
97
|
-
};
|
|
98
|
-
},
|
|
99
|
-
toJSON(message) {
|
|
100
|
-
const obj = {};
|
|
101
|
-
message.value !== undefined && (obj.value = message.value);
|
|
102
|
-
return obj;
|
|
103
|
-
},
|
|
104
|
-
fromPartial(object) {
|
|
105
|
-
const message = createBaseQueryDataResponse();
|
|
106
|
-
message.value = object.value ?? '';
|
|
107
|
-
return message;
|
|
108
|
-
},
|
|
109
|
-
fromProtoMsg(message) {
|
|
110
|
-
return QueryDataResponse.decode(message.value);
|
|
111
|
-
},
|
|
112
|
-
toProto(message) {
|
|
113
|
-
return QueryDataResponse.encode(message).finish();
|
|
114
|
-
},
|
|
115
|
-
toProtoMsg(message) {
|
|
116
|
-
return {
|
|
117
|
-
typeUrl: '/agoric.vstorage.QueryDataResponse',
|
|
118
|
-
value: QueryDataResponse.encode(message).finish(),
|
|
119
|
-
};
|
|
120
|
-
},
|
|
121
|
-
};
|
|
122
|
-
function createBaseQueryCapDataRequest() {
|
|
123
|
-
return {
|
|
124
|
-
path: '',
|
|
125
|
-
mediaType: '',
|
|
126
|
-
itemFormat: '',
|
|
127
|
-
remotableValueFormat: '',
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
export const QueryCapDataRequest = {
|
|
131
|
-
typeUrl: '/agoric.vstorage.QueryCapDataRequest',
|
|
132
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
133
|
-
if (message.path !== '') {
|
|
134
|
-
writer.uint32(10).string(message.path);
|
|
135
|
-
}
|
|
136
|
-
if (message.mediaType !== '') {
|
|
137
|
-
writer.uint32(18).string(message.mediaType);
|
|
138
|
-
}
|
|
139
|
-
if (message.itemFormat !== '') {
|
|
140
|
-
writer.uint32(26).string(message.itemFormat);
|
|
141
|
-
}
|
|
142
|
-
if (message.remotableValueFormat !== '') {
|
|
143
|
-
writer.uint32(82).string(message.remotableValueFormat);
|
|
144
|
-
}
|
|
145
|
-
return writer;
|
|
146
|
-
},
|
|
147
|
-
decode(input, length) {
|
|
148
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
149
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
150
|
-
const message = createBaseQueryCapDataRequest();
|
|
151
|
-
while (reader.pos < end) {
|
|
152
|
-
const tag = reader.uint32();
|
|
153
|
-
switch (tag >>> 3) {
|
|
154
|
-
case 1:
|
|
155
|
-
message.path = reader.string();
|
|
156
|
-
break;
|
|
157
|
-
case 2:
|
|
158
|
-
message.mediaType = reader.string();
|
|
159
|
-
break;
|
|
160
|
-
case 3:
|
|
161
|
-
message.itemFormat = reader.string();
|
|
162
|
-
break;
|
|
163
|
-
case 10:
|
|
164
|
-
message.remotableValueFormat = reader.string();
|
|
165
|
-
break;
|
|
166
|
-
default:
|
|
167
|
-
reader.skipType(tag & 7);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
return message;
|
|
172
|
-
},
|
|
173
|
-
fromJSON(object) {
|
|
174
|
-
return {
|
|
175
|
-
path: isSet(object.path) ? String(object.path) : '',
|
|
176
|
-
mediaType: isSet(object.mediaType) ? String(object.mediaType) : '',
|
|
177
|
-
itemFormat: isSet(object.itemFormat) ? String(object.itemFormat) : '',
|
|
178
|
-
remotableValueFormat: isSet(object.remotableValueFormat)
|
|
179
|
-
? String(object.remotableValueFormat)
|
|
180
|
-
: '',
|
|
181
|
-
};
|
|
182
|
-
},
|
|
183
|
-
toJSON(message) {
|
|
184
|
-
const obj = {};
|
|
185
|
-
message.path !== undefined && (obj.path = message.path);
|
|
186
|
-
message.mediaType !== undefined && (obj.mediaType = message.mediaType);
|
|
187
|
-
message.itemFormat !== undefined && (obj.itemFormat = message.itemFormat);
|
|
188
|
-
message.remotableValueFormat !== undefined &&
|
|
189
|
-
(obj.remotableValueFormat = message.remotableValueFormat);
|
|
190
|
-
return obj;
|
|
191
|
-
},
|
|
192
|
-
fromPartial(object) {
|
|
193
|
-
const message = createBaseQueryCapDataRequest();
|
|
194
|
-
message.path = object.path ?? '';
|
|
195
|
-
message.mediaType = object.mediaType ?? '';
|
|
196
|
-
message.itemFormat = object.itemFormat ?? '';
|
|
197
|
-
message.remotableValueFormat = object.remotableValueFormat ?? '';
|
|
198
|
-
return message;
|
|
199
|
-
},
|
|
200
|
-
fromProtoMsg(message) {
|
|
201
|
-
return QueryCapDataRequest.decode(message.value);
|
|
202
|
-
},
|
|
203
|
-
toProto(message) {
|
|
204
|
-
return QueryCapDataRequest.encode(message).finish();
|
|
205
|
-
},
|
|
206
|
-
toProtoMsg(message) {
|
|
207
|
-
return {
|
|
208
|
-
typeUrl: '/agoric.vstorage.QueryCapDataRequest',
|
|
209
|
-
value: QueryCapDataRequest.encode(message).finish(),
|
|
210
|
-
};
|
|
211
|
-
},
|
|
212
|
-
};
|
|
213
|
-
function createBaseQueryCapDataResponse() {
|
|
214
|
-
return {
|
|
215
|
-
blockHeight: '',
|
|
216
|
-
value: '',
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
export const QueryCapDataResponse = {
|
|
220
|
-
typeUrl: '/agoric.vstorage.QueryCapDataResponse',
|
|
221
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
222
|
-
if (message.blockHeight !== '') {
|
|
223
|
-
writer.uint32(10).string(message.blockHeight);
|
|
224
|
-
}
|
|
225
|
-
if (message.value !== '') {
|
|
226
|
-
writer.uint32(82).string(message.value);
|
|
227
|
-
}
|
|
228
|
-
return writer;
|
|
229
|
-
},
|
|
230
|
-
decode(input, length) {
|
|
231
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
232
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
|
-
const message = createBaseQueryCapDataResponse();
|
|
234
|
-
while (reader.pos < end) {
|
|
235
|
-
const tag = reader.uint32();
|
|
236
|
-
switch (tag >>> 3) {
|
|
237
|
-
case 1:
|
|
238
|
-
message.blockHeight = reader.string();
|
|
239
|
-
break;
|
|
240
|
-
case 10:
|
|
241
|
-
message.value = reader.string();
|
|
242
|
-
break;
|
|
243
|
-
default:
|
|
244
|
-
reader.skipType(tag & 7);
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
return message;
|
|
249
|
-
},
|
|
250
|
-
fromJSON(object) {
|
|
251
|
-
return {
|
|
252
|
-
blockHeight: isSet(object.blockHeight) ? String(object.blockHeight) : '',
|
|
253
|
-
value: isSet(object.value) ? String(object.value) : '',
|
|
254
|
-
};
|
|
255
|
-
},
|
|
256
|
-
toJSON(message) {
|
|
257
|
-
const obj = {};
|
|
258
|
-
message.blockHeight !== undefined &&
|
|
259
|
-
(obj.blockHeight = message.blockHeight);
|
|
260
|
-
message.value !== undefined && (obj.value = message.value);
|
|
261
|
-
return obj;
|
|
262
|
-
},
|
|
263
|
-
fromPartial(object) {
|
|
264
|
-
const message = createBaseQueryCapDataResponse();
|
|
265
|
-
message.blockHeight = object.blockHeight ?? '';
|
|
266
|
-
message.value = object.value ?? '';
|
|
267
|
-
return message;
|
|
268
|
-
},
|
|
269
|
-
fromProtoMsg(message) {
|
|
270
|
-
return QueryCapDataResponse.decode(message.value);
|
|
271
|
-
},
|
|
272
|
-
toProto(message) {
|
|
273
|
-
return QueryCapDataResponse.encode(message).finish();
|
|
274
|
-
},
|
|
275
|
-
toProtoMsg(message) {
|
|
276
|
-
return {
|
|
277
|
-
typeUrl: '/agoric.vstorage.QueryCapDataResponse',
|
|
278
|
-
value: QueryCapDataResponse.encode(message).finish(),
|
|
279
|
-
};
|
|
280
|
-
},
|
|
281
|
-
};
|
|
282
|
-
function createBaseQueryChildrenRequest() {
|
|
283
|
-
return {
|
|
284
|
-
path: '',
|
|
285
|
-
pagination: undefined,
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
export const QueryChildrenRequest = {
|
|
289
|
-
typeUrl: '/agoric.vstorage.QueryChildrenRequest',
|
|
290
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
291
|
-
if (message.path !== '') {
|
|
292
|
-
writer.uint32(10).string(message.path);
|
|
293
|
-
}
|
|
294
|
-
if (message.pagination !== undefined) {
|
|
295
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
296
|
-
}
|
|
297
|
-
return writer;
|
|
298
|
-
},
|
|
299
|
-
decode(input, length) {
|
|
300
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
301
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
302
|
-
const message = createBaseQueryChildrenRequest();
|
|
303
|
-
while (reader.pos < end) {
|
|
304
|
-
const tag = reader.uint32();
|
|
305
|
-
switch (tag >>> 3) {
|
|
306
|
-
case 1:
|
|
307
|
-
message.path = reader.string();
|
|
308
|
-
break;
|
|
309
|
-
case 2:
|
|
310
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
311
|
-
break;
|
|
312
|
-
default:
|
|
313
|
-
reader.skipType(tag & 7);
|
|
314
|
-
break;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return message;
|
|
318
|
-
},
|
|
319
|
-
fromJSON(object) {
|
|
320
|
-
return {
|
|
321
|
-
path: isSet(object.path) ? String(object.path) : '',
|
|
322
|
-
pagination: isSet(object.pagination)
|
|
323
|
-
? PageRequest.fromJSON(object.pagination)
|
|
324
|
-
: undefined,
|
|
325
|
-
};
|
|
326
|
-
},
|
|
327
|
-
toJSON(message) {
|
|
328
|
-
const obj = {};
|
|
329
|
-
message.path !== undefined && (obj.path = message.path);
|
|
330
|
-
message.pagination !== undefined &&
|
|
331
|
-
(obj.pagination = message.pagination
|
|
332
|
-
? PageRequest.toJSON(message.pagination)
|
|
333
|
-
: undefined);
|
|
334
|
-
return obj;
|
|
335
|
-
},
|
|
336
|
-
fromPartial(object) {
|
|
337
|
-
const message = createBaseQueryChildrenRequest();
|
|
338
|
-
message.path = object.path ?? '';
|
|
339
|
-
message.pagination =
|
|
340
|
-
object.pagination !== undefined && object.pagination !== null
|
|
341
|
-
? PageRequest.fromPartial(object.pagination)
|
|
342
|
-
: undefined;
|
|
343
|
-
return message;
|
|
344
|
-
},
|
|
345
|
-
fromProtoMsg(message) {
|
|
346
|
-
return QueryChildrenRequest.decode(message.value);
|
|
347
|
-
},
|
|
348
|
-
toProto(message) {
|
|
349
|
-
return QueryChildrenRequest.encode(message).finish();
|
|
350
|
-
},
|
|
351
|
-
toProtoMsg(message) {
|
|
352
|
-
return {
|
|
353
|
-
typeUrl: '/agoric.vstorage.QueryChildrenRequest',
|
|
354
|
-
value: QueryChildrenRequest.encode(message).finish(),
|
|
355
|
-
};
|
|
356
|
-
},
|
|
357
|
-
};
|
|
358
|
-
function createBaseQueryChildrenResponse() {
|
|
359
|
-
return {
|
|
360
|
-
children: [],
|
|
361
|
-
pagination: undefined,
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
export const QueryChildrenResponse = {
|
|
365
|
-
typeUrl: '/agoric.vstorage.QueryChildrenResponse',
|
|
366
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
367
|
-
for (const v of message.children) {
|
|
368
|
-
writer.uint32(10).string(v);
|
|
369
|
-
}
|
|
370
|
-
if (message.pagination !== undefined) {
|
|
371
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
372
|
-
}
|
|
373
|
-
return writer;
|
|
374
|
-
},
|
|
375
|
-
decode(input, length) {
|
|
376
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
377
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
378
|
-
const message = createBaseQueryChildrenResponse();
|
|
379
|
-
while (reader.pos < end) {
|
|
380
|
-
const tag = reader.uint32();
|
|
381
|
-
switch (tag >>> 3) {
|
|
382
|
-
case 1:
|
|
383
|
-
message.children.push(reader.string());
|
|
384
|
-
break;
|
|
385
|
-
case 2:
|
|
386
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
387
|
-
break;
|
|
388
|
-
default:
|
|
389
|
-
reader.skipType(tag & 7);
|
|
390
|
-
break;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
return message;
|
|
394
|
-
},
|
|
395
|
-
fromJSON(object) {
|
|
396
|
-
return {
|
|
397
|
-
children: Array.isArray(object?.children)
|
|
398
|
-
? object.children.map((e) => String(e))
|
|
399
|
-
: [],
|
|
400
|
-
pagination: isSet(object.pagination)
|
|
401
|
-
? PageResponse.fromJSON(object.pagination)
|
|
402
|
-
: undefined,
|
|
403
|
-
};
|
|
404
|
-
},
|
|
405
|
-
toJSON(message) {
|
|
406
|
-
const obj = {};
|
|
407
|
-
if (message.children) {
|
|
408
|
-
obj.children = message.children.map(e => e);
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
obj.children = [];
|
|
412
|
-
}
|
|
413
|
-
message.pagination !== undefined &&
|
|
414
|
-
(obj.pagination = message.pagination
|
|
415
|
-
? PageResponse.toJSON(message.pagination)
|
|
416
|
-
: undefined);
|
|
417
|
-
return obj;
|
|
418
|
-
},
|
|
419
|
-
fromPartial(object) {
|
|
420
|
-
const message = createBaseQueryChildrenResponse();
|
|
421
|
-
message.children = object.children?.map(e => e) || [];
|
|
422
|
-
message.pagination =
|
|
423
|
-
object.pagination !== undefined && object.pagination !== null
|
|
424
|
-
? PageResponse.fromPartial(object.pagination)
|
|
425
|
-
: undefined;
|
|
426
|
-
return message;
|
|
427
|
-
},
|
|
428
|
-
fromProtoMsg(message) {
|
|
429
|
-
return QueryChildrenResponse.decode(message.value);
|
|
430
|
-
},
|
|
431
|
-
toProto(message) {
|
|
432
|
-
return QueryChildrenResponse.encode(message).finish();
|
|
433
|
-
},
|
|
434
|
-
toProtoMsg(message) {
|
|
435
|
-
return {
|
|
436
|
-
typeUrl: '/agoric.vstorage.QueryChildrenResponse',
|
|
437
|
-
value: QueryChildrenResponse.encode(message).finish(),
|
|
438
|
-
};
|
|
439
|
-
},
|
|
440
|
-
};
|
|
441
|
-
//# sourceMappingURL=query.js.map
|
|
1
|
+
import{PageRequest as e,PageResponse as t}from"../../cosmos/base/query/v1beta1/pagination.js";import{BinaryReader as a,BinaryWriter as o}from"../../binary.js";import{isSet as r}from"../../helpers.js";import{}from"../../json-safe.js";export const QueryDataRequest={typeUrl:"/agoric.vstorage.QueryDataRequest",encode:(e,t=o.create())=>(""!==e.path&&t.uint32(10).string(e.path),t),decode(e,t){const o=e instanceof a?e:new a(e);let r=void 0===t?o.len:o.pos+t;const i={path:""};for(;o.pos<r;){const e=o.uint32();if(e>>>3==1)i.path=o.string();else o.skipType(7&e)}return i},fromJSON:e=>({path:r(e.path)?String(e.path):""}),toJSON(e){const t={};return void 0!==e.path&&(t.path=e.path),t},fromPartial(e){const t={path:""};return t.path=e.path??"",t},fromProtoMsg:e=>QueryDataRequest.decode(e.value),toProto:e=>QueryDataRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.QueryDataRequest",value:QueryDataRequest.encode(e).finish()})};export const QueryDataResponse={typeUrl:"/agoric.vstorage.QueryDataResponse",encode:(e,t=o.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const o=e instanceof a?e:new a(e);let r=void 0===t?o.len:o.pos+t;const i={value:""};for(;o.pos<r;){const e=o.uint32();if(e>>>3==1)i.value=o.string();else o.skipType(7&e)}return i},fromJSON:e=>({value:r(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:""};return t.value=e.value??"",t},fromProtoMsg:e=>QueryDataResponse.decode(e.value),toProto:e=>QueryDataResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.QueryDataResponse",value:QueryDataResponse.encode(e).finish()})};export const QueryCapDataRequest={typeUrl:"/agoric.vstorage.QueryCapDataRequest",encode:(e,t=o.create())=>(""!==e.path&&t.uint32(10).string(e.path),""!==e.mediaType&&t.uint32(18).string(e.mediaType),""!==e.itemFormat&&t.uint32(26).string(e.itemFormat),""!==e.remotableValueFormat&&t.uint32(82).string(e.remotableValueFormat),t),decode(e,t){const o=e instanceof a?e:new a(e);let r=void 0===t?o.len:o.pos+t;const i={path:"",mediaType:"",itemFormat:"",remotableValueFormat:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:i.path=o.string();break;case 2:i.mediaType=o.string();break;case 3:i.itemFormat=o.string();break;case 10:i.remotableValueFormat=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({path:r(e.path)?String(e.path):"",mediaType:r(e.mediaType)?String(e.mediaType):"",itemFormat:r(e.itemFormat)?String(e.itemFormat):"",remotableValueFormat:r(e.remotableValueFormat)?String(e.remotableValueFormat):""}),toJSON(e){const t={};return void 0!==e.path&&(t.path=e.path),void 0!==e.mediaType&&(t.mediaType=e.mediaType),void 0!==e.itemFormat&&(t.itemFormat=e.itemFormat),void 0!==e.remotableValueFormat&&(t.remotableValueFormat=e.remotableValueFormat),t},fromPartial(e){const t={path:"",mediaType:"",itemFormat:"",remotableValueFormat:""};return t.path=e.path??"",t.mediaType=e.mediaType??"",t.itemFormat=e.itemFormat??"",t.remotableValueFormat=e.remotableValueFormat??"",t},fromProtoMsg:e=>QueryCapDataRequest.decode(e.value),toProto:e=>QueryCapDataRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.QueryCapDataRequest",value:QueryCapDataRequest.encode(e).finish()})};export const QueryCapDataResponse={typeUrl:"/agoric.vstorage.QueryCapDataResponse",encode:(e,t=o.create())=>(""!==e.blockHeight&&t.uint32(10).string(e.blockHeight),""!==e.value&&t.uint32(82).string(e.value),t),decode(e,t){const o=e instanceof a?e:new a(e);let r=void 0===t?o.len:o.pos+t;const i={blockHeight:"",value:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:i.blockHeight=o.string();break;case 10:i.value=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({blockHeight:r(e.blockHeight)?String(e.blockHeight):"",value:r(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.blockHeight&&(t.blockHeight=e.blockHeight),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={blockHeight:"",value:""};return t.blockHeight=e.blockHeight??"",t.value=e.value??"",t},fromProtoMsg:e=>QueryCapDataResponse.decode(e.value),toProto:e=>QueryCapDataResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.QueryCapDataResponse",value:QueryCapDataResponse.encode(e).finish()})};export const QueryChildrenRequest={typeUrl:"/agoric.vstorage.QueryChildrenRequest",encode:(t,a=o.create())=>(""!==t.path&&a.uint32(10).string(t.path),void 0!==t.pagination&&e.encode(t.pagination,a.uint32(18).fork()).ldelim(),a),decode(t,o){const r=t instanceof a?t:new a(t);let i=void 0===o?r.len:r.pos+o;const n={path:"",pagination:void 0};for(;r.pos<i;){const t=r.uint32();switch(t>>>3){case 1:n.path=r.string();break;case 2:n.pagination=e.decode(r,r.uint32());break;default:r.skipType(7&t)}}return n},fromJSON:t=>({path:r(t.path)?String(t.path):"",pagination:r(t.pagination)?e.fromJSON(t.pagination):void 0}),toJSON(t){const a={};return void 0!==t.path&&(a.path=t.path),void 0!==t.pagination&&(a.pagination=t.pagination?e.toJSON(t.pagination):void 0),a},fromPartial(t){const a={path:"",pagination:void 0};return a.path=t.path??"",a.pagination=void 0!==t.pagination&&null!==t.pagination?e.fromPartial(t.pagination):void 0,a},fromProtoMsg:e=>QueryChildrenRequest.decode(e.value),toProto:e=>QueryChildrenRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.QueryChildrenRequest",value:QueryChildrenRequest.encode(e).finish()})};export const QueryChildrenResponse={typeUrl:"/agoric.vstorage.QueryChildrenResponse",encode(e,a=o.create()){for(const t of e.children)a.uint32(10).string(t);return void 0!==e.pagination&&t.encode(e.pagination,a.uint32(18).fork()).ldelim(),a},decode(e,o){const r=e instanceof a?e:new a(e);let i=void 0===o?r.len:r.pos+o;const n={children:[],pagination:void 0};for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:n.children.push(r.string());break;case 2:n.pagination=t.decode(r,r.uint32());break;default:r.skipType(7&e)}}return n},fromJSON:e=>({children:Array.isArray(e?.children)?e.children.map((e=>String(e))):[],pagination:r(e.pagination)?t.fromJSON(e.pagination):void 0}),toJSON(e){const a={};return e.children?a.children=e.children.map((e=>e)):a.children=[],void 0!==e.pagination&&(a.pagination=e.pagination?t.toJSON(e.pagination):void 0),a},fromPartial(e){const a={children:[],pagination:void 0};return a.children=e.children?.map((e=>e))||[],a.pagination=void 0!==e.pagination&&null!==e.pagination?t.fromPartial(e.pagination):void 0,a},fromProtoMsg:e=>QueryChildrenResponse.decode(e.value),toProto:e=>QueryChildrenResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.QueryChildrenResponse",value:QueryChildrenResponse.encode(e).finish()})};
|
|
@@ -1,128 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
-
import { isSet } from '../../helpers.js';
|
|
4
|
-
import {} from '../../json-safe.js';
|
|
5
|
-
function createBaseData() {
|
|
6
|
-
return {
|
|
7
|
-
value: '',
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export const Data = {
|
|
11
|
-
typeUrl: '/agoric.vstorage.Data',
|
|
12
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
-
if (message.value !== '') {
|
|
14
|
-
writer.uint32(10).string(message.value);
|
|
15
|
-
}
|
|
16
|
-
return writer;
|
|
17
|
-
},
|
|
18
|
-
decode(input, length) {
|
|
19
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
21
|
-
const message = createBaseData();
|
|
22
|
-
while (reader.pos < end) {
|
|
23
|
-
const tag = reader.uint32();
|
|
24
|
-
switch (tag >>> 3) {
|
|
25
|
-
case 1:
|
|
26
|
-
message.value = reader.string();
|
|
27
|
-
break;
|
|
28
|
-
default:
|
|
29
|
-
reader.skipType(tag & 7);
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return message;
|
|
34
|
-
},
|
|
35
|
-
fromJSON(object) {
|
|
36
|
-
return {
|
|
37
|
-
value: isSet(object.value) ? String(object.value) : '',
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
toJSON(message) {
|
|
41
|
-
const obj = {};
|
|
42
|
-
message.value !== undefined && (obj.value = message.value);
|
|
43
|
-
return obj;
|
|
44
|
-
},
|
|
45
|
-
fromPartial(object) {
|
|
46
|
-
const message = createBaseData();
|
|
47
|
-
message.value = object.value ?? '';
|
|
48
|
-
return message;
|
|
49
|
-
},
|
|
50
|
-
fromProtoMsg(message) {
|
|
51
|
-
return Data.decode(message.value);
|
|
52
|
-
},
|
|
53
|
-
toProto(message) {
|
|
54
|
-
return Data.encode(message).finish();
|
|
55
|
-
},
|
|
56
|
-
toProtoMsg(message) {
|
|
57
|
-
return {
|
|
58
|
-
typeUrl: '/agoric.vstorage.Data',
|
|
59
|
-
value: Data.encode(message).finish(),
|
|
60
|
-
};
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
function createBaseChildren() {
|
|
64
|
-
return {
|
|
65
|
-
children: [],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
export const Children = {
|
|
69
|
-
typeUrl: '/agoric.vstorage.Children',
|
|
70
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
71
|
-
for (const v of message.children) {
|
|
72
|
-
writer.uint32(10).string(v);
|
|
73
|
-
}
|
|
74
|
-
return writer;
|
|
75
|
-
},
|
|
76
|
-
decode(input, length) {
|
|
77
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
78
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
-
const message = createBaseChildren();
|
|
80
|
-
while (reader.pos < end) {
|
|
81
|
-
const tag = reader.uint32();
|
|
82
|
-
switch (tag >>> 3) {
|
|
83
|
-
case 1:
|
|
84
|
-
message.children.push(reader.string());
|
|
85
|
-
break;
|
|
86
|
-
default:
|
|
87
|
-
reader.skipType(tag & 7);
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return message;
|
|
92
|
-
},
|
|
93
|
-
fromJSON(object) {
|
|
94
|
-
return {
|
|
95
|
-
children: Array.isArray(object?.children)
|
|
96
|
-
? object.children.map((e) => String(e))
|
|
97
|
-
: [],
|
|
98
|
-
};
|
|
99
|
-
},
|
|
100
|
-
toJSON(message) {
|
|
101
|
-
const obj = {};
|
|
102
|
-
if (message.children) {
|
|
103
|
-
obj.children = message.children.map(e => e);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
obj.children = [];
|
|
107
|
-
}
|
|
108
|
-
return obj;
|
|
109
|
-
},
|
|
110
|
-
fromPartial(object) {
|
|
111
|
-
const message = createBaseChildren();
|
|
112
|
-
message.children = object.children?.map(e => e) || [];
|
|
113
|
-
return message;
|
|
114
|
-
},
|
|
115
|
-
fromProtoMsg(message) {
|
|
116
|
-
return Children.decode(message.value);
|
|
117
|
-
},
|
|
118
|
-
toProto(message) {
|
|
119
|
-
return Children.encode(message).finish();
|
|
120
|
-
},
|
|
121
|
-
toProtoMsg(message) {
|
|
122
|
-
return {
|
|
123
|
-
typeUrl: '/agoric.vstorage.Children',
|
|
124
|
-
value: Children.encode(message).finish(),
|
|
125
|
-
};
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
//# sourceMappingURL=vstorage.js.map
|
|
1
|
+
import{BinaryReader as e,BinaryWriter as r}from"../../binary.js";import{isSet as o}from"../../helpers.js";import{}from"../../json-safe.js";export const Data={typeUrl:"/agoric.vstorage.Data",encode:(e,o=r.create())=>(""!==e.value&&o.uint32(10).string(e.value),o),decode(r,o){const n=r instanceof e?r:new e(r);let t=void 0===o?n.len:n.pos+o;const i={value:""};for(;n.pos<t;){const e=n.uint32();if(e>>>3==1)i.value=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({value:o(e.value)?String(e.value):""}),toJSON(e){const r={};return void 0!==e.value&&(r.value=e.value),r},fromPartial(e){const r={value:""};return r.value=e.value??"",r},fromProtoMsg:e=>Data.decode(e.value),toProto:e=>Data.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.Data",value:Data.encode(e).finish()})};export const Children={typeUrl:"/agoric.vstorage.Children",encode(e,o=r.create()){for(const r of e.children)o.uint32(10).string(r);return o},decode(r,o){const n=r instanceof e?r:new e(r);let t=void 0===o?n.len:n.pos+o;const i={children:[]};for(;n.pos<t;){const e=n.uint32();if(e>>>3==1)i.children.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({children:Array.isArray(e?.children)?e.children.map((e=>String(e))):[]}),toJSON(e){const r={};return e.children?r.children=e.children.map((e=>e)):r.children=[],r},fromPartial(e){const r={children:[]};return r.children=e.children?.map((e=>e))||[],r},fromProtoMsg:e=>Children.decode(e.value),toProto:e=>Children.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vstorage.Children",value:Children.encode(e).finish()})};
|
|
@@ -1,70 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
3
|
-
import { bytesFromBase64, base64FromBytes } from '../../helpers.js';
|
|
4
|
-
import {} from '../../json-safe.js';
|
|
5
|
-
function createBaseGenesisState() {
|
|
6
|
-
return {
|
|
7
|
-
watchedAddresses: [],
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export const GenesisState = {
|
|
11
|
-
typeUrl: '/agoric.vtransfer.GenesisState',
|
|
12
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
-
for (const v of message.watchedAddresses) {
|
|
14
|
-
writer.uint32(10).bytes(v);
|
|
15
|
-
}
|
|
16
|
-
return writer;
|
|
17
|
-
},
|
|
18
|
-
decode(input, length) {
|
|
19
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
21
|
-
const message = createBaseGenesisState();
|
|
22
|
-
while (reader.pos < end) {
|
|
23
|
-
const tag = reader.uint32();
|
|
24
|
-
switch (tag >>> 3) {
|
|
25
|
-
case 1:
|
|
26
|
-
message.watchedAddresses.push(reader.bytes());
|
|
27
|
-
break;
|
|
28
|
-
default:
|
|
29
|
-
reader.skipType(tag & 7);
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return message;
|
|
34
|
-
},
|
|
35
|
-
fromJSON(object) {
|
|
36
|
-
return {
|
|
37
|
-
watchedAddresses: Array.isArray(object?.watchedAddresses)
|
|
38
|
-
? object.watchedAddresses.map((e) => bytesFromBase64(e))
|
|
39
|
-
: [],
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
toJSON(message) {
|
|
43
|
-
const obj = {};
|
|
44
|
-
if (message.watchedAddresses) {
|
|
45
|
-
obj.watchedAddresses = message.watchedAddresses.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
obj.watchedAddresses = [];
|
|
49
|
-
}
|
|
50
|
-
return obj;
|
|
51
|
-
},
|
|
52
|
-
fromPartial(object) {
|
|
53
|
-
const message = createBaseGenesisState();
|
|
54
|
-
message.watchedAddresses = object.watchedAddresses?.map(e => e) || [];
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
fromProtoMsg(message) {
|
|
58
|
-
return GenesisState.decode(message.value);
|
|
59
|
-
},
|
|
60
|
-
toProto(message) {
|
|
61
|
-
return GenesisState.encode(message).finish();
|
|
62
|
-
},
|
|
63
|
-
toProtoMsg(message) {
|
|
64
|
-
return {
|
|
65
|
-
typeUrl: '/agoric.vtransfer.GenesisState',
|
|
66
|
-
value: GenesisState.encode(message).finish(),
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=genesis.js.map
|
|
1
|
+
import{BinaryReader as e,BinaryWriter as s}from"../../binary.js";import{bytesFromBase64 as t,base64FromBytes as r}from"../../helpers.js";import{}from"../../json-safe.js";export const GenesisState={typeUrl:"/agoric.vtransfer.GenesisState",encode(e,t=s.create()){for(const s of e.watchedAddresses)t.uint32(10).bytes(s);return t},decode(s,t){const r=s instanceof e?s:new e(s);let d=void 0===t?r.len:r.pos+t;const o={watchedAddresses:[]};for(;r.pos<d;){const e=r.uint32();if(e>>>3==1)o.watchedAddresses.push(r.bytes());else r.skipType(7&e)}return o},fromJSON:e=>({watchedAddresses:Array.isArray(e?.watchedAddresses)?e.watchedAddresses.map((e=>t(e))):[]}),toJSON(e){const s={};return e.watchedAddresses?s.watchedAddresses=e.watchedAddresses.map((e=>r(void 0!==e?e:new Uint8Array))):s.watchedAddresses=[],s},fromPartial(e){const s={watchedAddresses:[]};return s.watchedAddresses=e.watchedAddresses?.map((e=>e))||[],s},fromProtoMsg:e=>GenesisState.decode(e.value),toProto:e=>GenesisState.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.vtransfer.GenesisState",value:GenesisState.encode(e).finish()})};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
//# sourceMappingURL=amino.js.map
|
|
1
|
+
export{};
|