blue-js-sdk 2.0.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/CHANGELOG.md +446 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/ai-path/ADMIN-ELEVATION.md +116 -0
- package/ai-path/AI-MANIFESTO.md +185 -0
- package/ai-path/BREAKING.md +74 -0
- package/ai-path/CHECKLIST.md +619 -0
- package/ai-path/CONNECTION-STEPS.md +724 -0
- package/ai-path/DECISION-TREE.md +378 -0
- package/ai-path/DEPENDENCIES.md +459 -0
- package/ai-path/E2E-FLOW.md +1555 -0
- package/ai-path/FAILURES.md +403 -0
- package/ai-path/GUIDE.md +1217 -0
- package/ai-path/README.md +558 -0
- package/ai-path/SPLIT-TUNNEL.md +266 -0
- package/ai-path/cli.js +535 -0
- package/ai-path/connect.js +884 -0
- package/ai-path/discover.js +178 -0
- package/ai-path/environment.js +266 -0
- package/ai-path/errors.js +86 -0
- package/ai-path/examples/autonomous-agent.mjs +220 -0
- package/ai-path/examples/multi-region.mjs +174 -0
- package/ai-path/examples/one-shot.mjs +31 -0
- package/ai-path/index.js +60 -0
- package/ai-path/pricing.js +136 -0
- package/ai-path/recommend.js +413 -0
- package/ai-path/run-admin.vbs +25 -0
- package/ai-path/setup.js +291 -0
- package/ai-path/wallet.js +137 -0
- package/app-helpers.js +363 -0
- package/app-settings.js +95 -0
- package/app-types.js +267 -0
- package/audit.js +847 -0
- package/batch.js +293 -0
- package/bin/setup.js +376 -0
- package/chain/authz.js +109 -0
- package/chain/broadcast.js +472 -0
- package/chain/client.js +160 -0
- package/chain/fee-grants.js +305 -0
- package/chain/index.js +891 -0
- package/chain/lcd.js +313 -0
- package/chain/queries.js +547 -0
- package/chain/rpc.js +408 -0
- package/chain/wallet.js +141 -0
- package/cli/config.js +143 -0
- package/cli/index.js +463 -0
- package/cli/output.js +182 -0
- package/cli.js +491 -0
- package/client/index.js +251 -0
- package/client.js +271 -0
- package/config/index.js +255 -0
- package/connection/connect.js +849 -0
- package/connection/disconnect.js +180 -0
- package/connection/discovery.js +321 -0
- package/connection/index.js +76 -0
- package/connection/proxy.js +148 -0
- package/connection/resilience.js +428 -0
- package/connection/security.js +232 -0
- package/connection/state.js +369 -0
- package/connection/tunnel.js +691 -0
- package/consumer.js +132 -0
- package/cosmjs-setup.js +1884 -0
- package/defaults.js +366 -0
- package/disk-cache.js +107 -0
- package/dist/client.d.ts +108 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +400 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/errors/index.js +112 -0
- package/errors.js +218 -0
- package/examples/README.md +64 -0
- package/examples/connect-direct.mjs +106 -0
- package/examples/connect-plan.mjs +125 -0
- package/examples/error-handling.mjs +109 -0
- package/examples/query-nodes.mjs +94 -0
- package/examples/wallet-basics.mjs +61 -0
- package/generated/amino/amino.ts +9 -0
- package/generated/cosmos/base/v1beta1/coin.ts +365 -0
- package/generated/cosmos_proto/cosmos.ts +323 -0
- package/generated/gogoproto/gogo.ts +9 -0
- package/generated/google/protobuf/descriptor.ts +7601 -0
- package/generated/google/protobuf/duration.ts +208 -0
- package/generated/google/protobuf/timestamp.ts +238 -0
- package/generated/sentinel/lease/v1/events.ts +924 -0
- package/generated/sentinel/lease/v1/lease.ts +292 -0
- package/generated/sentinel/lease/v1/msg.ts +949 -0
- package/generated/sentinel/lease/v1/params.ts +164 -0
- package/generated/sentinel/node/v3/events.ts +881 -0
- package/generated/sentinel/node/v3/msg.ts +1002 -0
- package/generated/sentinel/node/v3/node.ts +263 -0
- package/generated/sentinel/node/v3/params.ts +183 -0
- package/generated/sentinel/plan/v3/events.ts +675 -0
- package/generated/sentinel/plan/v3/msg.ts +1191 -0
- package/generated/sentinel/plan/v3/plan.ts +283 -0
- package/generated/sentinel/provider/v2/events.ts +171 -0
- package/generated/sentinel/provider/v2/msg.ts +480 -0
- package/generated/sentinel/provider/v2/params.ts +131 -0
- package/generated/sentinel/provider/v2/provider.ts +246 -0
- package/generated/sentinel/session/v3/events.ts +480 -0
- package/generated/sentinel/session/v3/msg.ts +616 -0
- package/generated/sentinel/session/v3/params.ts +260 -0
- package/generated/sentinel/session/v3/proof.ts +180 -0
- package/generated/sentinel/session/v3/session.ts +384 -0
- package/generated/sentinel/subscription/v3/events.ts +1181 -0
- package/generated/sentinel/subscription/v3/msg.ts +1305 -0
- package/generated/sentinel/subscription/v3/params.ts +167 -0
- package/generated/sentinel/subscription/v3/subscription.ts +315 -0
- package/generated/sentinel/types/v1/bandwidth.ts +124 -0
- package/generated/sentinel/types/v1/price.ts +149 -0
- package/generated/sentinel/types/v1/renewal.ts +87 -0
- package/generated/sentinel/types/v1/status.ts +54 -0
- package/generated/typeRegistry.ts +27 -0
- package/index.js +486 -0
- package/node-connect.js +3015 -0
- package/operator.js +134 -0
- package/package.json +113 -0
- package/plan-operations.js +199 -0
- package/preflight.js +352 -0
- package/pricing/index.js +262 -0
- package/proto/amino/amino.proto +84 -0
- package/proto/cosmos/base/v1beta1/coin.proto +61 -0
- package/proto/cosmos_proto/cosmos.proto +112 -0
- package/proto/gogoproto/gogo.proto +145 -0
- package/proto/google/api/annotations.proto +31 -0
- package/proto/google/api/http.proto +370 -0
- package/proto/google/protobuf/any.proto +106 -0
- package/proto/google/protobuf/duration.proto +115 -0
- package/proto/google/protobuf/timestamp.proto +145 -0
- package/proto/sentinel/lease/v1/events.proto +52 -0
- package/proto/sentinel/lease/v1/genesis.proto +15 -0
- package/proto/sentinel/lease/v1/lease.proto +25 -0
- package/proto/sentinel/lease/v1/msg.proto +62 -0
- package/proto/sentinel/lease/v1/params.proto +17 -0
- package/proto/sentinel/node/v3/events.proto +50 -0
- package/proto/sentinel/node/v3/genesis.proto +15 -0
- package/proto/sentinel/node/v3/msg.proto +63 -0
- package/proto/sentinel/node/v3/node.proto +27 -0
- package/proto/sentinel/node/v3/params.proto +21 -0
- package/proto/sentinel/node/v3/querier.proto +63 -0
- package/proto/sentinel/plan/v3/events.proto +41 -0
- package/proto/sentinel/plan/v3/genesis.proto +21 -0
- package/proto/sentinel/plan/v3/msg.proto +83 -0
- package/proto/sentinel/plan/v3/plan.proto +32 -0
- package/proto/sentinel/plan/v3/querier.proto +53 -0
- package/proto/sentinel/provider/v2/events.proto +16 -0
- package/proto/sentinel/provider/v2/genesis.proto +15 -0
- package/proto/sentinel/provider/v2/msg.proto +35 -0
- package/proto/sentinel/provider/v2/params.proto +17 -0
- package/proto/sentinel/provider/v2/provider.proto +24 -0
- package/proto/sentinel/provider/v3/genesis.proto +15 -0
- package/proto/sentinel/provider/v3/params.proto +13 -0
- package/proto/sentinel/session/v3/events.proto +30 -0
- package/proto/sentinel/session/v3/genesis.proto +15 -0
- package/proto/sentinel/session/v3/msg.proto +50 -0
- package/proto/sentinel/session/v3/params.proto +25 -0
- package/proto/sentinel/session/v3/proof.proto +25 -0
- package/proto/sentinel/session/v3/querier.proto +100 -0
- package/proto/sentinel/session/v3/session.proto +50 -0
- package/proto/sentinel/subscription/v2/allocation.proto +21 -0
- package/proto/sentinel/subscription/v2/payout.proto +22 -0
- package/proto/sentinel/subscription/v3/events.proto +65 -0
- package/proto/sentinel/subscription/v3/genesis.proto +17 -0
- package/proto/sentinel/subscription/v3/msg.proto +83 -0
- package/proto/sentinel/subscription/v3/params.proto +21 -0
- package/proto/sentinel/subscription/v3/subscription.proto +33 -0
- package/proto/sentinel/types/v1/bandwidth.proto +19 -0
- package/proto/sentinel/types/v1/price.proto +21 -0
- package/proto/sentinel/types/v1/renewal.proto +21 -0
- package/proto/sentinel/types/v1/status.proto +16 -0
- package/protocol/encoding.js +341 -0
- package/protocol/events.js +361 -0
- package/protocol/handshake.js +297 -0
- package/protocol/index.js +15 -0
- package/protocol/messages.js +346 -0
- package/protocol/plans.js +199 -0
- package/protocol/v2ray.js +268 -0
- package/protocol/v3.js +723 -0
- package/protocol/wireguard.js +125 -0
- package/security/index.js +132 -0
- package/session-manager.js +329 -0
- package/session-tracker.js +80 -0
- package/setup.js +376 -0
- package/speedtest/index.js +528 -0
- package/speedtest.js +567 -0
- package/src/client.ts +502 -0
- package/src/index.ts +20 -0
- package/state/index.js +347 -0
- package/state.js +516 -0
- package/test-all-chain-ops.js +493 -0
- package/test-all-logic.js +199 -0
- package/test-all-msg-types.js +292 -0
- package/test-every-connection.js +208 -0
- package/test-feegrant-connect.js +98 -0
- package/test-logic.js +148 -0
- package/test-mainnet.js +176 -0
- package/test-plan-lifecycle.js +335 -0
- package/tls-trust.js +132 -0
- package/tsconfig.build.json +20 -0
- package/tsconfig.json +34 -0
- package/types/chain.d.ts +746 -0
- package/types/connection.d.ts +425 -0
- package/types/errors.d.ts +174 -0
- package/types/index.d.ts +1380 -0
- package/types/nodes.d.ts +187 -0
- package/types/pricing.d.ts +156 -0
- package/types/protocol.d.ts +332 -0
- package/types/session.d.ts +236 -0
- package/types/settings.d.ts +192 -0
- package/v3protocol.js +1053 -0
- package/wallet/index.js +153 -0
- package/wireguard.js +307 -0
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.6
|
|
4
|
+
// protoc v7.34.0
|
|
5
|
+
// source: sentinel/subscription/v3/msg.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
+
import { messageTypeRegistry } from "../../../typeRegistry";
|
|
10
|
+
import { RenewalPricePolicy, renewalPricePolicyFromJSON, renewalPricePolicyToJSON } from "../../types/v1/renewal";
|
|
11
|
+
import { Params } from "./params";
|
|
12
|
+
|
|
13
|
+
export const protobufPackage = "sentinel.subscription.v3";
|
|
14
|
+
|
|
15
|
+
export interface MsgCancelSubscriptionRequest {
|
|
16
|
+
$type: "sentinel.subscription.v3.MsgCancelSubscriptionRequest";
|
|
17
|
+
from: string;
|
|
18
|
+
id: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface MsgRenewSubscriptionRequest {
|
|
22
|
+
$type: "sentinel.subscription.v3.MsgRenewSubscriptionRequest";
|
|
23
|
+
from: string;
|
|
24
|
+
id: number;
|
|
25
|
+
denom: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface MsgShareSubscriptionRequest {
|
|
29
|
+
$type: "sentinel.subscription.v3.MsgShareSubscriptionRequest";
|
|
30
|
+
from: string;
|
|
31
|
+
id: number;
|
|
32
|
+
accAddress: string;
|
|
33
|
+
bytes: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface MsgStartSubscriptionRequest {
|
|
37
|
+
$type: "sentinel.subscription.v3.MsgStartSubscriptionRequest";
|
|
38
|
+
from: string;
|
|
39
|
+
id: number;
|
|
40
|
+
denom: string;
|
|
41
|
+
renewalPricePolicy: RenewalPricePolicy;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface MsgUpdateSubscriptionRequest {
|
|
45
|
+
$type: "sentinel.subscription.v3.MsgUpdateSubscriptionRequest";
|
|
46
|
+
from: string;
|
|
47
|
+
id: number;
|
|
48
|
+
renewalPricePolicy: RenewalPricePolicy;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface MsgStartSessionRequest {
|
|
52
|
+
$type: "sentinel.subscription.v3.MsgStartSessionRequest";
|
|
53
|
+
from: string;
|
|
54
|
+
id: number;
|
|
55
|
+
nodeAddress: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface MsgUpdateParamsRequest {
|
|
59
|
+
$type: "sentinel.subscription.v3.MsgUpdateParamsRequest";
|
|
60
|
+
from: string;
|
|
61
|
+
params: Params | undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface MsgCancelSubscriptionResponse {
|
|
65
|
+
$type: "sentinel.subscription.v3.MsgCancelSubscriptionResponse";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface MsgRenewSubscriptionResponse {
|
|
69
|
+
$type: "sentinel.subscription.v3.MsgRenewSubscriptionResponse";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface MsgShareSubscriptionResponse {
|
|
73
|
+
$type: "sentinel.subscription.v3.MsgShareSubscriptionResponse";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface MsgStartSubscriptionResponse {
|
|
77
|
+
$type: "sentinel.subscription.v3.MsgStartSubscriptionResponse";
|
|
78
|
+
id: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface MsgUpdateSubscriptionResponse {
|
|
82
|
+
$type: "sentinel.subscription.v3.MsgUpdateSubscriptionResponse";
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface MsgStartSessionResponse {
|
|
86
|
+
$type: "sentinel.subscription.v3.MsgStartSessionResponse";
|
|
87
|
+
id: number;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface MsgUpdateParamsResponse {
|
|
91
|
+
$type: "sentinel.subscription.v3.MsgUpdateParamsResponse";
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function createBaseMsgCancelSubscriptionRequest(): MsgCancelSubscriptionRequest {
|
|
95
|
+
return { $type: "sentinel.subscription.v3.MsgCancelSubscriptionRequest", from: "", id: 0 };
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const MsgCancelSubscriptionRequest: MessageFns<
|
|
99
|
+
MsgCancelSubscriptionRequest,
|
|
100
|
+
"sentinel.subscription.v3.MsgCancelSubscriptionRequest"
|
|
101
|
+
> = {
|
|
102
|
+
$type: "sentinel.subscription.v3.MsgCancelSubscriptionRequest" as const,
|
|
103
|
+
|
|
104
|
+
encode(message: MsgCancelSubscriptionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
105
|
+
if (message.from !== "") {
|
|
106
|
+
writer.uint32(10).string(message.from);
|
|
107
|
+
}
|
|
108
|
+
if (message.id !== 0) {
|
|
109
|
+
writer.uint32(16).uint64(message.id);
|
|
110
|
+
}
|
|
111
|
+
return writer;
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSubscriptionRequest {
|
|
115
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
116
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
117
|
+
const message = createBaseMsgCancelSubscriptionRequest();
|
|
118
|
+
while (reader.pos < end) {
|
|
119
|
+
const tag = reader.uint32();
|
|
120
|
+
switch (tag >>> 3) {
|
|
121
|
+
case 1: {
|
|
122
|
+
if (tag !== 10) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message.from = reader.string();
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
case 2: {
|
|
130
|
+
if (tag !== 16) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
message.id = longToNumber(reader.uint64());
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
reader.skip(tag & 7);
|
|
142
|
+
}
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
fromJSON(object: any): MsgCancelSubscriptionRequest {
|
|
147
|
+
return {
|
|
148
|
+
$type: MsgCancelSubscriptionRequest.$type,
|
|
149
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
150
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
toJSON(message: MsgCancelSubscriptionRequest): unknown {
|
|
155
|
+
const obj: any = {};
|
|
156
|
+
if (message.from !== "") {
|
|
157
|
+
obj.from = message.from;
|
|
158
|
+
}
|
|
159
|
+
if (message.id !== 0) {
|
|
160
|
+
obj.id = Math.round(message.id);
|
|
161
|
+
}
|
|
162
|
+
return obj;
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
create<I extends Exact<DeepPartial<MsgCancelSubscriptionRequest>, I>>(base?: I): MsgCancelSubscriptionRequest {
|
|
166
|
+
return MsgCancelSubscriptionRequest.fromPartial(base ?? ({} as any));
|
|
167
|
+
},
|
|
168
|
+
fromPartial<I extends Exact<DeepPartial<MsgCancelSubscriptionRequest>, I>>(object: I): MsgCancelSubscriptionRequest {
|
|
169
|
+
const message = createBaseMsgCancelSubscriptionRequest();
|
|
170
|
+
message.from = object.from ?? "";
|
|
171
|
+
message.id = object.id ?? 0;
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
messageTypeRegistry.set(MsgCancelSubscriptionRequest.$type, MsgCancelSubscriptionRequest);
|
|
177
|
+
|
|
178
|
+
function createBaseMsgRenewSubscriptionRequest(): MsgRenewSubscriptionRequest {
|
|
179
|
+
return { $type: "sentinel.subscription.v3.MsgRenewSubscriptionRequest", from: "", id: 0, denom: "" };
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export const MsgRenewSubscriptionRequest: MessageFns<
|
|
183
|
+
MsgRenewSubscriptionRequest,
|
|
184
|
+
"sentinel.subscription.v3.MsgRenewSubscriptionRequest"
|
|
185
|
+
> = {
|
|
186
|
+
$type: "sentinel.subscription.v3.MsgRenewSubscriptionRequest" as const,
|
|
187
|
+
|
|
188
|
+
encode(message: MsgRenewSubscriptionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
189
|
+
if (message.from !== "") {
|
|
190
|
+
writer.uint32(10).string(message.from);
|
|
191
|
+
}
|
|
192
|
+
if (message.id !== 0) {
|
|
193
|
+
writer.uint32(16).uint64(message.id);
|
|
194
|
+
}
|
|
195
|
+
if (message.denom !== "") {
|
|
196
|
+
writer.uint32(26).string(message.denom);
|
|
197
|
+
}
|
|
198
|
+
return writer;
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgRenewSubscriptionRequest {
|
|
202
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
203
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
204
|
+
const message = createBaseMsgRenewSubscriptionRequest();
|
|
205
|
+
while (reader.pos < end) {
|
|
206
|
+
const tag = reader.uint32();
|
|
207
|
+
switch (tag >>> 3) {
|
|
208
|
+
case 1: {
|
|
209
|
+
if (tag !== 10) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message.from = reader.string();
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
case 2: {
|
|
217
|
+
if (tag !== 16) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message.id = longToNumber(reader.uint64());
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
case 3: {
|
|
225
|
+
if (tag !== 26) {
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
message.denom = reader.string();
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
reader.skip(tag & 7);
|
|
237
|
+
}
|
|
238
|
+
return message;
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
fromJSON(object: any): MsgRenewSubscriptionRequest {
|
|
242
|
+
return {
|
|
243
|
+
$type: MsgRenewSubscriptionRequest.$type,
|
|
244
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
245
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
246
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
|
|
250
|
+
toJSON(message: MsgRenewSubscriptionRequest): unknown {
|
|
251
|
+
const obj: any = {};
|
|
252
|
+
if (message.from !== "") {
|
|
253
|
+
obj.from = message.from;
|
|
254
|
+
}
|
|
255
|
+
if (message.id !== 0) {
|
|
256
|
+
obj.id = Math.round(message.id);
|
|
257
|
+
}
|
|
258
|
+
if (message.denom !== "") {
|
|
259
|
+
obj.denom = message.denom;
|
|
260
|
+
}
|
|
261
|
+
return obj;
|
|
262
|
+
},
|
|
263
|
+
|
|
264
|
+
create<I extends Exact<DeepPartial<MsgRenewSubscriptionRequest>, I>>(base?: I): MsgRenewSubscriptionRequest {
|
|
265
|
+
return MsgRenewSubscriptionRequest.fromPartial(base ?? ({} as any));
|
|
266
|
+
},
|
|
267
|
+
fromPartial<I extends Exact<DeepPartial<MsgRenewSubscriptionRequest>, I>>(object: I): MsgRenewSubscriptionRequest {
|
|
268
|
+
const message = createBaseMsgRenewSubscriptionRequest();
|
|
269
|
+
message.from = object.from ?? "";
|
|
270
|
+
message.id = object.id ?? 0;
|
|
271
|
+
message.denom = object.denom ?? "";
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
messageTypeRegistry.set(MsgRenewSubscriptionRequest.$type, MsgRenewSubscriptionRequest);
|
|
277
|
+
|
|
278
|
+
function createBaseMsgShareSubscriptionRequest(): MsgShareSubscriptionRequest {
|
|
279
|
+
return { $type: "sentinel.subscription.v3.MsgShareSubscriptionRequest", from: "", id: 0, accAddress: "", bytes: "" };
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export const MsgShareSubscriptionRequest: MessageFns<
|
|
283
|
+
MsgShareSubscriptionRequest,
|
|
284
|
+
"sentinel.subscription.v3.MsgShareSubscriptionRequest"
|
|
285
|
+
> = {
|
|
286
|
+
$type: "sentinel.subscription.v3.MsgShareSubscriptionRequest" as const,
|
|
287
|
+
|
|
288
|
+
encode(message: MsgShareSubscriptionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
289
|
+
if (message.from !== "") {
|
|
290
|
+
writer.uint32(10).string(message.from);
|
|
291
|
+
}
|
|
292
|
+
if (message.id !== 0) {
|
|
293
|
+
writer.uint32(16).uint64(message.id);
|
|
294
|
+
}
|
|
295
|
+
if (message.accAddress !== "") {
|
|
296
|
+
writer.uint32(26).string(message.accAddress);
|
|
297
|
+
}
|
|
298
|
+
if (message.bytes !== "") {
|
|
299
|
+
writer.uint32(34).string(message.bytes);
|
|
300
|
+
}
|
|
301
|
+
return writer;
|
|
302
|
+
},
|
|
303
|
+
|
|
304
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgShareSubscriptionRequest {
|
|
305
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
306
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
307
|
+
const message = createBaseMsgShareSubscriptionRequest();
|
|
308
|
+
while (reader.pos < end) {
|
|
309
|
+
const tag = reader.uint32();
|
|
310
|
+
switch (tag >>> 3) {
|
|
311
|
+
case 1: {
|
|
312
|
+
if (tag !== 10) {
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
message.from = reader.string();
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
case 2: {
|
|
320
|
+
if (tag !== 16) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
message.id = longToNumber(reader.uint64());
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
case 3: {
|
|
328
|
+
if (tag !== 26) {
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
message.accAddress = reader.string();
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
335
|
+
case 4: {
|
|
336
|
+
if (tag !== 34) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
message.bytes = reader.string();
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
reader.skip(tag & 7);
|
|
348
|
+
}
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
|
|
352
|
+
fromJSON(object: any): MsgShareSubscriptionRequest {
|
|
353
|
+
return {
|
|
354
|
+
$type: MsgShareSubscriptionRequest.$type,
|
|
355
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
356
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
357
|
+
accAddress: isSet(object.accAddress)
|
|
358
|
+
? globalThis.String(object.accAddress)
|
|
359
|
+
: isSet(object.acc_address)
|
|
360
|
+
? globalThis.String(object.acc_address)
|
|
361
|
+
: "",
|
|
362
|
+
bytes: isSet(object.bytes) ? globalThis.String(object.bytes) : "",
|
|
363
|
+
};
|
|
364
|
+
},
|
|
365
|
+
|
|
366
|
+
toJSON(message: MsgShareSubscriptionRequest): unknown {
|
|
367
|
+
const obj: any = {};
|
|
368
|
+
if (message.from !== "") {
|
|
369
|
+
obj.from = message.from;
|
|
370
|
+
}
|
|
371
|
+
if (message.id !== 0) {
|
|
372
|
+
obj.id = Math.round(message.id);
|
|
373
|
+
}
|
|
374
|
+
if (message.accAddress !== "") {
|
|
375
|
+
obj.accAddress = message.accAddress;
|
|
376
|
+
}
|
|
377
|
+
if (message.bytes !== "") {
|
|
378
|
+
obj.bytes = message.bytes;
|
|
379
|
+
}
|
|
380
|
+
return obj;
|
|
381
|
+
},
|
|
382
|
+
|
|
383
|
+
create<I extends Exact<DeepPartial<MsgShareSubscriptionRequest>, I>>(base?: I): MsgShareSubscriptionRequest {
|
|
384
|
+
return MsgShareSubscriptionRequest.fromPartial(base ?? ({} as any));
|
|
385
|
+
},
|
|
386
|
+
fromPartial<I extends Exact<DeepPartial<MsgShareSubscriptionRequest>, I>>(object: I): MsgShareSubscriptionRequest {
|
|
387
|
+
const message = createBaseMsgShareSubscriptionRequest();
|
|
388
|
+
message.from = object.from ?? "";
|
|
389
|
+
message.id = object.id ?? 0;
|
|
390
|
+
message.accAddress = object.accAddress ?? "";
|
|
391
|
+
message.bytes = object.bytes ?? "";
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
messageTypeRegistry.set(MsgShareSubscriptionRequest.$type, MsgShareSubscriptionRequest);
|
|
397
|
+
|
|
398
|
+
function createBaseMsgStartSubscriptionRequest(): MsgStartSubscriptionRequest {
|
|
399
|
+
return {
|
|
400
|
+
$type: "sentinel.subscription.v3.MsgStartSubscriptionRequest",
|
|
401
|
+
from: "",
|
|
402
|
+
id: 0,
|
|
403
|
+
denom: "",
|
|
404
|
+
renewalPricePolicy: 0,
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export const MsgStartSubscriptionRequest: MessageFns<
|
|
409
|
+
MsgStartSubscriptionRequest,
|
|
410
|
+
"sentinel.subscription.v3.MsgStartSubscriptionRequest"
|
|
411
|
+
> = {
|
|
412
|
+
$type: "sentinel.subscription.v3.MsgStartSubscriptionRequest" as const,
|
|
413
|
+
|
|
414
|
+
encode(message: MsgStartSubscriptionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
415
|
+
if (message.from !== "") {
|
|
416
|
+
writer.uint32(10).string(message.from);
|
|
417
|
+
}
|
|
418
|
+
if (message.id !== 0) {
|
|
419
|
+
writer.uint32(16).uint64(message.id);
|
|
420
|
+
}
|
|
421
|
+
if (message.denom !== "") {
|
|
422
|
+
writer.uint32(26).string(message.denom);
|
|
423
|
+
}
|
|
424
|
+
if (message.renewalPricePolicy !== 0) {
|
|
425
|
+
writer.uint32(32).int32(message.renewalPricePolicy);
|
|
426
|
+
}
|
|
427
|
+
return writer;
|
|
428
|
+
},
|
|
429
|
+
|
|
430
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStartSubscriptionRequest {
|
|
431
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
432
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
433
|
+
const message = createBaseMsgStartSubscriptionRequest();
|
|
434
|
+
while (reader.pos < end) {
|
|
435
|
+
const tag = reader.uint32();
|
|
436
|
+
switch (tag >>> 3) {
|
|
437
|
+
case 1: {
|
|
438
|
+
if (tag !== 10) {
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
message.from = reader.string();
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
case 2: {
|
|
446
|
+
if (tag !== 16) {
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
message.id = longToNumber(reader.uint64());
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
case 3: {
|
|
454
|
+
if (tag !== 26) {
|
|
455
|
+
break;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
message.denom = reader.string();
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
case 4: {
|
|
462
|
+
if (tag !== 32) {
|
|
463
|
+
break;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
message.renewalPricePolicy = reader.int32() as any;
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
reader.skip(tag & 7);
|
|
474
|
+
}
|
|
475
|
+
return message;
|
|
476
|
+
},
|
|
477
|
+
|
|
478
|
+
fromJSON(object: any): MsgStartSubscriptionRequest {
|
|
479
|
+
return {
|
|
480
|
+
$type: MsgStartSubscriptionRequest.$type,
|
|
481
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
482
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
483
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
484
|
+
renewalPricePolicy: isSet(object.renewalPricePolicy)
|
|
485
|
+
? renewalPricePolicyFromJSON(object.renewalPricePolicy)
|
|
486
|
+
: isSet(object.renewal_price_policy)
|
|
487
|
+
? renewalPricePolicyFromJSON(object.renewal_price_policy)
|
|
488
|
+
: 0,
|
|
489
|
+
};
|
|
490
|
+
},
|
|
491
|
+
|
|
492
|
+
toJSON(message: MsgStartSubscriptionRequest): unknown {
|
|
493
|
+
const obj: any = {};
|
|
494
|
+
if (message.from !== "") {
|
|
495
|
+
obj.from = message.from;
|
|
496
|
+
}
|
|
497
|
+
if (message.id !== 0) {
|
|
498
|
+
obj.id = Math.round(message.id);
|
|
499
|
+
}
|
|
500
|
+
if (message.denom !== "") {
|
|
501
|
+
obj.denom = message.denom;
|
|
502
|
+
}
|
|
503
|
+
if (message.renewalPricePolicy !== 0) {
|
|
504
|
+
obj.renewalPricePolicy = renewalPricePolicyToJSON(message.renewalPricePolicy);
|
|
505
|
+
}
|
|
506
|
+
return obj;
|
|
507
|
+
},
|
|
508
|
+
|
|
509
|
+
create<I extends Exact<DeepPartial<MsgStartSubscriptionRequest>, I>>(base?: I): MsgStartSubscriptionRequest {
|
|
510
|
+
return MsgStartSubscriptionRequest.fromPartial(base ?? ({} as any));
|
|
511
|
+
},
|
|
512
|
+
fromPartial<I extends Exact<DeepPartial<MsgStartSubscriptionRequest>, I>>(object: I): MsgStartSubscriptionRequest {
|
|
513
|
+
const message = createBaseMsgStartSubscriptionRequest();
|
|
514
|
+
message.from = object.from ?? "";
|
|
515
|
+
message.id = object.id ?? 0;
|
|
516
|
+
message.denom = object.denom ?? "";
|
|
517
|
+
message.renewalPricePolicy = object.renewalPricePolicy ?? 0;
|
|
518
|
+
return message;
|
|
519
|
+
},
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
messageTypeRegistry.set(MsgStartSubscriptionRequest.$type, MsgStartSubscriptionRequest);
|
|
523
|
+
|
|
524
|
+
function createBaseMsgUpdateSubscriptionRequest(): MsgUpdateSubscriptionRequest {
|
|
525
|
+
return { $type: "sentinel.subscription.v3.MsgUpdateSubscriptionRequest", from: "", id: 0, renewalPricePolicy: 0 };
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export const MsgUpdateSubscriptionRequest: MessageFns<
|
|
529
|
+
MsgUpdateSubscriptionRequest,
|
|
530
|
+
"sentinel.subscription.v3.MsgUpdateSubscriptionRequest"
|
|
531
|
+
> = {
|
|
532
|
+
$type: "sentinel.subscription.v3.MsgUpdateSubscriptionRequest" as const,
|
|
533
|
+
|
|
534
|
+
encode(message: MsgUpdateSubscriptionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
535
|
+
if (message.from !== "") {
|
|
536
|
+
writer.uint32(10).string(message.from);
|
|
537
|
+
}
|
|
538
|
+
if (message.id !== 0) {
|
|
539
|
+
writer.uint32(16).uint64(message.id);
|
|
540
|
+
}
|
|
541
|
+
if (message.renewalPricePolicy !== 0) {
|
|
542
|
+
writer.uint32(24).int32(message.renewalPricePolicy);
|
|
543
|
+
}
|
|
544
|
+
return writer;
|
|
545
|
+
},
|
|
546
|
+
|
|
547
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSubscriptionRequest {
|
|
548
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
549
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
550
|
+
const message = createBaseMsgUpdateSubscriptionRequest();
|
|
551
|
+
while (reader.pos < end) {
|
|
552
|
+
const tag = reader.uint32();
|
|
553
|
+
switch (tag >>> 3) {
|
|
554
|
+
case 1: {
|
|
555
|
+
if (tag !== 10) {
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
message.from = reader.string();
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
case 2: {
|
|
563
|
+
if (tag !== 16) {
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
message.id = longToNumber(reader.uint64());
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
case 3: {
|
|
571
|
+
if (tag !== 24) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
message.renewalPricePolicy = reader.int32() as any;
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
reader.skip(tag & 7);
|
|
583
|
+
}
|
|
584
|
+
return message;
|
|
585
|
+
},
|
|
586
|
+
|
|
587
|
+
fromJSON(object: any): MsgUpdateSubscriptionRequest {
|
|
588
|
+
return {
|
|
589
|
+
$type: MsgUpdateSubscriptionRequest.$type,
|
|
590
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
591
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
592
|
+
renewalPricePolicy: isSet(object.renewalPricePolicy)
|
|
593
|
+
? renewalPricePolicyFromJSON(object.renewalPricePolicy)
|
|
594
|
+
: isSet(object.renewal_price_policy)
|
|
595
|
+
? renewalPricePolicyFromJSON(object.renewal_price_policy)
|
|
596
|
+
: 0,
|
|
597
|
+
};
|
|
598
|
+
},
|
|
599
|
+
|
|
600
|
+
toJSON(message: MsgUpdateSubscriptionRequest): unknown {
|
|
601
|
+
const obj: any = {};
|
|
602
|
+
if (message.from !== "") {
|
|
603
|
+
obj.from = message.from;
|
|
604
|
+
}
|
|
605
|
+
if (message.id !== 0) {
|
|
606
|
+
obj.id = Math.round(message.id);
|
|
607
|
+
}
|
|
608
|
+
if (message.renewalPricePolicy !== 0) {
|
|
609
|
+
obj.renewalPricePolicy = renewalPricePolicyToJSON(message.renewalPricePolicy);
|
|
610
|
+
}
|
|
611
|
+
return obj;
|
|
612
|
+
},
|
|
613
|
+
|
|
614
|
+
create<I extends Exact<DeepPartial<MsgUpdateSubscriptionRequest>, I>>(base?: I): MsgUpdateSubscriptionRequest {
|
|
615
|
+
return MsgUpdateSubscriptionRequest.fromPartial(base ?? ({} as any));
|
|
616
|
+
},
|
|
617
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateSubscriptionRequest>, I>>(object: I): MsgUpdateSubscriptionRequest {
|
|
618
|
+
const message = createBaseMsgUpdateSubscriptionRequest();
|
|
619
|
+
message.from = object.from ?? "";
|
|
620
|
+
message.id = object.id ?? 0;
|
|
621
|
+
message.renewalPricePolicy = object.renewalPricePolicy ?? 0;
|
|
622
|
+
return message;
|
|
623
|
+
},
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
messageTypeRegistry.set(MsgUpdateSubscriptionRequest.$type, MsgUpdateSubscriptionRequest);
|
|
627
|
+
|
|
628
|
+
function createBaseMsgStartSessionRequest(): MsgStartSessionRequest {
|
|
629
|
+
return { $type: "sentinel.subscription.v3.MsgStartSessionRequest", from: "", id: 0, nodeAddress: "" };
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export const MsgStartSessionRequest: MessageFns<
|
|
633
|
+
MsgStartSessionRequest,
|
|
634
|
+
"sentinel.subscription.v3.MsgStartSessionRequest"
|
|
635
|
+
> = {
|
|
636
|
+
$type: "sentinel.subscription.v3.MsgStartSessionRequest" as const,
|
|
637
|
+
|
|
638
|
+
encode(message: MsgStartSessionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
639
|
+
if (message.from !== "") {
|
|
640
|
+
writer.uint32(10).string(message.from);
|
|
641
|
+
}
|
|
642
|
+
if (message.id !== 0) {
|
|
643
|
+
writer.uint32(16).uint64(message.id);
|
|
644
|
+
}
|
|
645
|
+
if (message.nodeAddress !== "") {
|
|
646
|
+
writer.uint32(26).string(message.nodeAddress);
|
|
647
|
+
}
|
|
648
|
+
return writer;
|
|
649
|
+
},
|
|
650
|
+
|
|
651
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStartSessionRequest {
|
|
652
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
653
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
654
|
+
const message = createBaseMsgStartSessionRequest();
|
|
655
|
+
while (reader.pos < end) {
|
|
656
|
+
const tag = reader.uint32();
|
|
657
|
+
switch (tag >>> 3) {
|
|
658
|
+
case 1: {
|
|
659
|
+
if (tag !== 10) {
|
|
660
|
+
break;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
message.from = reader.string();
|
|
664
|
+
continue;
|
|
665
|
+
}
|
|
666
|
+
case 2: {
|
|
667
|
+
if (tag !== 16) {
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
message.id = longToNumber(reader.uint64());
|
|
672
|
+
continue;
|
|
673
|
+
}
|
|
674
|
+
case 3: {
|
|
675
|
+
if (tag !== 26) {
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
message.nodeAddress = reader.string();
|
|
680
|
+
continue;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
reader.skip(tag & 7);
|
|
687
|
+
}
|
|
688
|
+
return message;
|
|
689
|
+
},
|
|
690
|
+
|
|
691
|
+
fromJSON(object: any): MsgStartSessionRequest {
|
|
692
|
+
return {
|
|
693
|
+
$type: MsgStartSessionRequest.$type,
|
|
694
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
695
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
696
|
+
nodeAddress: isSet(object.nodeAddress)
|
|
697
|
+
? globalThis.String(object.nodeAddress)
|
|
698
|
+
: isSet(object.node_address)
|
|
699
|
+
? globalThis.String(object.node_address)
|
|
700
|
+
: "",
|
|
701
|
+
};
|
|
702
|
+
},
|
|
703
|
+
|
|
704
|
+
toJSON(message: MsgStartSessionRequest): unknown {
|
|
705
|
+
const obj: any = {};
|
|
706
|
+
if (message.from !== "") {
|
|
707
|
+
obj.from = message.from;
|
|
708
|
+
}
|
|
709
|
+
if (message.id !== 0) {
|
|
710
|
+
obj.id = Math.round(message.id);
|
|
711
|
+
}
|
|
712
|
+
if (message.nodeAddress !== "") {
|
|
713
|
+
obj.nodeAddress = message.nodeAddress;
|
|
714
|
+
}
|
|
715
|
+
return obj;
|
|
716
|
+
},
|
|
717
|
+
|
|
718
|
+
create<I extends Exact<DeepPartial<MsgStartSessionRequest>, I>>(base?: I): MsgStartSessionRequest {
|
|
719
|
+
return MsgStartSessionRequest.fromPartial(base ?? ({} as any));
|
|
720
|
+
},
|
|
721
|
+
fromPartial<I extends Exact<DeepPartial<MsgStartSessionRequest>, I>>(object: I): MsgStartSessionRequest {
|
|
722
|
+
const message = createBaseMsgStartSessionRequest();
|
|
723
|
+
message.from = object.from ?? "";
|
|
724
|
+
message.id = object.id ?? 0;
|
|
725
|
+
message.nodeAddress = object.nodeAddress ?? "";
|
|
726
|
+
return message;
|
|
727
|
+
},
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
messageTypeRegistry.set(MsgStartSessionRequest.$type, MsgStartSessionRequest);
|
|
731
|
+
|
|
732
|
+
function createBaseMsgUpdateParamsRequest(): MsgUpdateParamsRequest {
|
|
733
|
+
return { $type: "sentinel.subscription.v3.MsgUpdateParamsRequest", from: "", params: undefined };
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export const MsgUpdateParamsRequest: MessageFns<
|
|
737
|
+
MsgUpdateParamsRequest,
|
|
738
|
+
"sentinel.subscription.v3.MsgUpdateParamsRequest"
|
|
739
|
+
> = {
|
|
740
|
+
$type: "sentinel.subscription.v3.MsgUpdateParamsRequest" as const,
|
|
741
|
+
|
|
742
|
+
encode(message: MsgUpdateParamsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
743
|
+
if (message.from !== "") {
|
|
744
|
+
writer.uint32(10).string(message.from);
|
|
745
|
+
}
|
|
746
|
+
if (message.params !== undefined) {
|
|
747
|
+
Params.encode(message.params, writer.uint32(18).fork()).join();
|
|
748
|
+
}
|
|
749
|
+
return writer;
|
|
750
|
+
},
|
|
751
|
+
|
|
752
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsRequest {
|
|
753
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
754
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
755
|
+
const message = createBaseMsgUpdateParamsRequest();
|
|
756
|
+
while (reader.pos < end) {
|
|
757
|
+
const tag = reader.uint32();
|
|
758
|
+
switch (tag >>> 3) {
|
|
759
|
+
case 1: {
|
|
760
|
+
if (tag !== 10) {
|
|
761
|
+
break;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
message.from = reader.string();
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
767
|
+
case 2: {
|
|
768
|
+
if (tag !== 18) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
773
|
+
continue;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
reader.skip(tag & 7);
|
|
780
|
+
}
|
|
781
|
+
return message;
|
|
782
|
+
},
|
|
783
|
+
|
|
784
|
+
fromJSON(object: any): MsgUpdateParamsRequest {
|
|
785
|
+
return {
|
|
786
|
+
$type: MsgUpdateParamsRequest.$type,
|
|
787
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
788
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
789
|
+
};
|
|
790
|
+
},
|
|
791
|
+
|
|
792
|
+
toJSON(message: MsgUpdateParamsRequest): unknown {
|
|
793
|
+
const obj: any = {};
|
|
794
|
+
if (message.from !== "") {
|
|
795
|
+
obj.from = message.from;
|
|
796
|
+
}
|
|
797
|
+
if (message.params !== undefined) {
|
|
798
|
+
obj.params = Params.toJSON(message.params);
|
|
799
|
+
}
|
|
800
|
+
return obj;
|
|
801
|
+
},
|
|
802
|
+
|
|
803
|
+
create<I extends Exact<DeepPartial<MsgUpdateParamsRequest>, I>>(base?: I): MsgUpdateParamsRequest {
|
|
804
|
+
return MsgUpdateParamsRequest.fromPartial(base ?? ({} as any));
|
|
805
|
+
},
|
|
806
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsRequest>, I>>(object: I): MsgUpdateParamsRequest {
|
|
807
|
+
const message = createBaseMsgUpdateParamsRequest();
|
|
808
|
+
message.from = object.from ?? "";
|
|
809
|
+
message.params = (object.params !== undefined && object.params !== null)
|
|
810
|
+
? Params.fromPartial(object.params)
|
|
811
|
+
: undefined;
|
|
812
|
+
return message;
|
|
813
|
+
},
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
messageTypeRegistry.set(MsgUpdateParamsRequest.$type, MsgUpdateParamsRequest);
|
|
817
|
+
|
|
818
|
+
function createBaseMsgCancelSubscriptionResponse(): MsgCancelSubscriptionResponse {
|
|
819
|
+
return { $type: "sentinel.subscription.v3.MsgCancelSubscriptionResponse" };
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export const MsgCancelSubscriptionResponse: MessageFns<
|
|
823
|
+
MsgCancelSubscriptionResponse,
|
|
824
|
+
"sentinel.subscription.v3.MsgCancelSubscriptionResponse"
|
|
825
|
+
> = {
|
|
826
|
+
$type: "sentinel.subscription.v3.MsgCancelSubscriptionResponse" as const,
|
|
827
|
+
|
|
828
|
+
encode(_: MsgCancelSubscriptionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
829
|
+
return writer;
|
|
830
|
+
},
|
|
831
|
+
|
|
832
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSubscriptionResponse {
|
|
833
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
834
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
835
|
+
const message = createBaseMsgCancelSubscriptionResponse();
|
|
836
|
+
while (reader.pos < end) {
|
|
837
|
+
const tag = reader.uint32();
|
|
838
|
+
switch (tag >>> 3) {
|
|
839
|
+
}
|
|
840
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
841
|
+
break;
|
|
842
|
+
}
|
|
843
|
+
reader.skip(tag & 7);
|
|
844
|
+
}
|
|
845
|
+
return message;
|
|
846
|
+
},
|
|
847
|
+
|
|
848
|
+
fromJSON(_: any): MsgCancelSubscriptionResponse {
|
|
849
|
+
return { $type: MsgCancelSubscriptionResponse.$type };
|
|
850
|
+
},
|
|
851
|
+
|
|
852
|
+
toJSON(_: MsgCancelSubscriptionResponse): unknown {
|
|
853
|
+
const obj: any = {};
|
|
854
|
+
return obj;
|
|
855
|
+
},
|
|
856
|
+
|
|
857
|
+
create<I extends Exact<DeepPartial<MsgCancelSubscriptionResponse>, I>>(base?: I): MsgCancelSubscriptionResponse {
|
|
858
|
+
return MsgCancelSubscriptionResponse.fromPartial(base ?? ({} as any));
|
|
859
|
+
},
|
|
860
|
+
fromPartial<I extends Exact<DeepPartial<MsgCancelSubscriptionResponse>, I>>(_: I): MsgCancelSubscriptionResponse {
|
|
861
|
+
const message = createBaseMsgCancelSubscriptionResponse();
|
|
862
|
+
return message;
|
|
863
|
+
},
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
messageTypeRegistry.set(MsgCancelSubscriptionResponse.$type, MsgCancelSubscriptionResponse);
|
|
867
|
+
|
|
868
|
+
function createBaseMsgRenewSubscriptionResponse(): MsgRenewSubscriptionResponse {
|
|
869
|
+
return { $type: "sentinel.subscription.v3.MsgRenewSubscriptionResponse" };
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export const MsgRenewSubscriptionResponse: MessageFns<
|
|
873
|
+
MsgRenewSubscriptionResponse,
|
|
874
|
+
"sentinel.subscription.v3.MsgRenewSubscriptionResponse"
|
|
875
|
+
> = {
|
|
876
|
+
$type: "sentinel.subscription.v3.MsgRenewSubscriptionResponse" as const,
|
|
877
|
+
|
|
878
|
+
encode(_: MsgRenewSubscriptionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
879
|
+
return writer;
|
|
880
|
+
},
|
|
881
|
+
|
|
882
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgRenewSubscriptionResponse {
|
|
883
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
884
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
885
|
+
const message = createBaseMsgRenewSubscriptionResponse();
|
|
886
|
+
while (reader.pos < end) {
|
|
887
|
+
const tag = reader.uint32();
|
|
888
|
+
switch (tag >>> 3) {
|
|
889
|
+
}
|
|
890
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
891
|
+
break;
|
|
892
|
+
}
|
|
893
|
+
reader.skip(tag & 7);
|
|
894
|
+
}
|
|
895
|
+
return message;
|
|
896
|
+
},
|
|
897
|
+
|
|
898
|
+
fromJSON(_: any): MsgRenewSubscriptionResponse {
|
|
899
|
+
return { $type: MsgRenewSubscriptionResponse.$type };
|
|
900
|
+
},
|
|
901
|
+
|
|
902
|
+
toJSON(_: MsgRenewSubscriptionResponse): unknown {
|
|
903
|
+
const obj: any = {};
|
|
904
|
+
return obj;
|
|
905
|
+
},
|
|
906
|
+
|
|
907
|
+
create<I extends Exact<DeepPartial<MsgRenewSubscriptionResponse>, I>>(base?: I): MsgRenewSubscriptionResponse {
|
|
908
|
+
return MsgRenewSubscriptionResponse.fromPartial(base ?? ({} as any));
|
|
909
|
+
},
|
|
910
|
+
fromPartial<I extends Exact<DeepPartial<MsgRenewSubscriptionResponse>, I>>(_: I): MsgRenewSubscriptionResponse {
|
|
911
|
+
const message = createBaseMsgRenewSubscriptionResponse();
|
|
912
|
+
return message;
|
|
913
|
+
},
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
messageTypeRegistry.set(MsgRenewSubscriptionResponse.$type, MsgRenewSubscriptionResponse);
|
|
917
|
+
|
|
918
|
+
function createBaseMsgShareSubscriptionResponse(): MsgShareSubscriptionResponse {
|
|
919
|
+
return { $type: "sentinel.subscription.v3.MsgShareSubscriptionResponse" };
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
export const MsgShareSubscriptionResponse: MessageFns<
|
|
923
|
+
MsgShareSubscriptionResponse,
|
|
924
|
+
"sentinel.subscription.v3.MsgShareSubscriptionResponse"
|
|
925
|
+
> = {
|
|
926
|
+
$type: "sentinel.subscription.v3.MsgShareSubscriptionResponse" as const,
|
|
927
|
+
|
|
928
|
+
encode(_: MsgShareSubscriptionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
929
|
+
return writer;
|
|
930
|
+
},
|
|
931
|
+
|
|
932
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgShareSubscriptionResponse {
|
|
933
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
934
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
935
|
+
const message = createBaseMsgShareSubscriptionResponse();
|
|
936
|
+
while (reader.pos < end) {
|
|
937
|
+
const tag = reader.uint32();
|
|
938
|
+
switch (tag >>> 3) {
|
|
939
|
+
}
|
|
940
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
reader.skip(tag & 7);
|
|
944
|
+
}
|
|
945
|
+
return message;
|
|
946
|
+
},
|
|
947
|
+
|
|
948
|
+
fromJSON(_: any): MsgShareSubscriptionResponse {
|
|
949
|
+
return { $type: MsgShareSubscriptionResponse.$type };
|
|
950
|
+
},
|
|
951
|
+
|
|
952
|
+
toJSON(_: MsgShareSubscriptionResponse): unknown {
|
|
953
|
+
const obj: any = {};
|
|
954
|
+
return obj;
|
|
955
|
+
},
|
|
956
|
+
|
|
957
|
+
create<I extends Exact<DeepPartial<MsgShareSubscriptionResponse>, I>>(base?: I): MsgShareSubscriptionResponse {
|
|
958
|
+
return MsgShareSubscriptionResponse.fromPartial(base ?? ({} as any));
|
|
959
|
+
},
|
|
960
|
+
fromPartial<I extends Exact<DeepPartial<MsgShareSubscriptionResponse>, I>>(_: I): MsgShareSubscriptionResponse {
|
|
961
|
+
const message = createBaseMsgShareSubscriptionResponse();
|
|
962
|
+
return message;
|
|
963
|
+
},
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
messageTypeRegistry.set(MsgShareSubscriptionResponse.$type, MsgShareSubscriptionResponse);
|
|
967
|
+
|
|
968
|
+
function createBaseMsgStartSubscriptionResponse(): MsgStartSubscriptionResponse {
|
|
969
|
+
return { $type: "sentinel.subscription.v3.MsgStartSubscriptionResponse", id: 0 };
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export const MsgStartSubscriptionResponse: MessageFns<
|
|
973
|
+
MsgStartSubscriptionResponse,
|
|
974
|
+
"sentinel.subscription.v3.MsgStartSubscriptionResponse"
|
|
975
|
+
> = {
|
|
976
|
+
$type: "sentinel.subscription.v3.MsgStartSubscriptionResponse" as const,
|
|
977
|
+
|
|
978
|
+
encode(message: MsgStartSubscriptionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
979
|
+
if (message.id !== 0) {
|
|
980
|
+
writer.uint32(8).uint64(message.id);
|
|
981
|
+
}
|
|
982
|
+
return writer;
|
|
983
|
+
},
|
|
984
|
+
|
|
985
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStartSubscriptionResponse {
|
|
986
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
987
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
988
|
+
const message = createBaseMsgStartSubscriptionResponse();
|
|
989
|
+
while (reader.pos < end) {
|
|
990
|
+
const tag = reader.uint32();
|
|
991
|
+
switch (tag >>> 3) {
|
|
992
|
+
case 1: {
|
|
993
|
+
if (tag !== 8) {
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
message.id = longToNumber(reader.uint64());
|
|
998
|
+
continue;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1002
|
+
break;
|
|
1003
|
+
}
|
|
1004
|
+
reader.skip(tag & 7);
|
|
1005
|
+
}
|
|
1006
|
+
return message;
|
|
1007
|
+
},
|
|
1008
|
+
|
|
1009
|
+
fromJSON(object: any): MsgStartSubscriptionResponse {
|
|
1010
|
+
return { $type: MsgStartSubscriptionResponse.$type, id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
1011
|
+
},
|
|
1012
|
+
|
|
1013
|
+
toJSON(message: MsgStartSubscriptionResponse): unknown {
|
|
1014
|
+
const obj: any = {};
|
|
1015
|
+
if (message.id !== 0) {
|
|
1016
|
+
obj.id = Math.round(message.id);
|
|
1017
|
+
}
|
|
1018
|
+
return obj;
|
|
1019
|
+
},
|
|
1020
|
+
|
|
1021
|
+
create<I extends Exact<DeepPartial<MsgStartSubscriptionResponse>, I>>(base?: I): MsgStartSubscriptionResponse {
|
|
1022
|
+
return MsgStartSubscriptionResponse.fromPartial(base ?? ({} as any));
|
|
1023
|
+
},
|
|
1024
|
+
fromPartial<I extends Exact<DeepPartial<MsgStartSubscriptionResponse>, I>>(object: I): MsgStartSubscriptionResponse {
|
|
1025
|
+
const message = createBaseMsgStartSubscriptionResponse();
|
|
1026
|
+
message.id = object.id ?? 0;
|
|
1027
|
+
return message;
|
|
1028
|
+
},
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
messageTypeRegistry.set(MsgStartSubscriptionResponse.$type, MsgStartSubscriptionResponse);
|
|
1032
|
+
|
|
1033
|
+
function createBaseMsgUpdateSubscriptionResponse(): MsgUpdateSubscriptionResponse {
|
|
1034
|
+
return { $type: "sentinel.subscription.v3.MsgUpdateSubscriptionResponse" };
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
export const MsgUpdateSubscriptionResponse: MessageFns<
|
|
1038
|
+
MsgUpdateSubscriptionResponse,
|
|
1039
|
+
"sentinel.subscription.v3.MsgUpdateSubscriptionResponse"
|
|
1040
|
+
> = {
|
|
1041
|
+
$type: "sentinel.subscription.v3.MsgUpdateSubscriptionResponse" as const,
|
|
1042
|
+
|
|
1043
|
+
encode(_: MsgUpdateSubscriptionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1044
|
+
return writer;
|
|
1045
|
+
},
|
|
1046
|
+
|
|
1047
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSubscriptionResponse {
|
|
1048
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1049
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1050
|
+
const message = createBaseMsgUpdateSubscriptionResponse();
|
|
1051
|
+
while (reader.pos < end) {
|
|
1052
|
+
const tag = reader.uint32();
|
|
1053
|
+
switch (tag >>> 3) {
|
|
1054
|
+
}
|
|
1055
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1056
|
+
break;
|
|
1057
|
+
}
|
|
1058
|
+
reader.skip(tag & 7);
|
|
1059
|
+
}
|
|
1060
|
+
return message;
|
|
1061
|
+
},
|
|
1062
|
+
|
|
1063
|
+
fromJSON(_: any): MsgUpdateSubscriptionResponse {
|
|
1064
|
+
return { $type: MsgUpdateSubscriptionResponse.$type };
|
|
1065
|
+
},
|
|
1066
|
+
|
|
1067
|
+
toJSON(_: MsgUpdateSubscriptionResponse): unknown {
|
|
1068
|
+
const obj: any = {};
|
|
1069
|
+
return obj;
|
|
1070
|
+
},
|
|
1071
|
+
|
|
1072
|
+
create<I extends Exact<DeepPartial<MsgUpdateSubscriptionResponse>, I>>(base?: I): MsgUpdateSubscriptionResponse {
|
|
1073
|
+
return MsgUpdateSubscriptionResponse.fromPartial(base ?? ({} as any));
|
|
1074
|
+
},
|
|
1075
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateSubscriptionResponse>, I>>(_: I): MsgUpdateSubscriptionResponse {
|
|
1076
|
+
const message = createBaseMsgUpdateSubscriptionResponse();
|
|
1077
|
+
return message;
|
|
1078
|
+
},
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
messageTypeRegistry.set(MsgUpdateSubscriptionResponse.$type, MsgUpdateSubscriptionResponse);
|
|
1082
|
+
|
|
1083
|
+
function createBaseMsgStartSessionResponse(): MsgStartSessionResponse {
|
|
1084
|
+
return { $type: "sentinel.subscription.v3.MsgStartSessionResponse", id: 0 };
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
export const MsgStartSessionResponse: MessageFns<
|
|
1088
|
+
MsgStartSessionResponse,
|
|
1089
|
+
"sentinel.subscription.v3.MsgStartSessionResponse"
|
|
1090
|
+
> = {
|
|
1091
|
+
$type: "sentinel.subscription.v3.MsgStartSessionResponse" as const,
|
|
1092
|
+
|
|
1093
|
+
encode(message: MsgStartSessionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1094
|
+
if (message.id !== 0) {
|
|
1095
|
+
writer.uint32(8).uint64(message.id);
|
|
1096
|
+
}
|
|
1097
|
+
return writer;
|
|
1098
|
+
},
|
|
1099
|
+
|
|
1100
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStartSessionResponse {
|
|
1101
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1102
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1103
|
+
const message = createBaseMsgStartSessionResponse();
|
|
1104
|
+
while (reader.pos < end) {
|
|
1105
|
+
const tag = reader.uint32();
|
|
1106
|
+
switch (tag >>> 3) {
|
|
1107
|
+
case 1: {
|
|
1108
|
+
if (tag !== 8) {
|
|
1109
|
+
break;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
message.id = longToNumber(reader.uint64());
|
|
1113
|
+
continue;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
reader.skip(tag & 7);
|
|
1120
|
+
}
|
|
1121
|
+
return message;
|
|
1122
|
+
},
|
|
1123
|
+
|
|
1124
|
+
fromJSON(object: any): MsgStartSessionResponse {
|
|
1125
|
+
return { $type: MsgStartSessionResponse.$type, id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
1126
|
+
},
|
|
1127
|
+
|
|
1128
|
+
toJSON(message: MsgStartSessionResponse): unknown {
|
|
1129
|
+
const obj: any = {};
|
|
1130
|
+
if (message.id !== 0) {
|
|
1131
|
+
obj.id = Math.round(message.id);
|
|
1132
|
+
}
|
|
1133
|
+
return obj;
|
|
1134
|
+
},
|
|
1135
|
+
|
|
1136
|
+
create<I extends Exact<DeepPartial<MsgStartSessionResponse>, I>>(base?: I): MsgStartSessionResponse {
|
|
1137
|
+
return MsgStartSessionResponse.fromPartial(base ?? ({} as any));
|
|
1138
|
+
},
|
|
1139
|
+
fromPartial<I extends Exact<DeepPartial<MsgStartSessionResponse>, I>>(object: I): MsgStartSessionResponse {
|
|
1140
|
+
const message = createBaseMsgStartSessionResponse();
|
|
1141
|
+
message.id = object.id ?? 0;
|
|
1142
|
+
return message;
|
|
1143
|
+
},
|
|
1144
|
+
};
|
|
1145
|
+
|
|
1146
|
+
messageTypeRegistry.set(MsgStartSessionResponse.$type, MsgStartSessionResponse);
|
|
1147
|
+
|
|
1148
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1149
|
+
return { $type: "sentinel.subscription.v3.MsgUpdateParamsResponse" };
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
export const MsgUpdateParamsResponse: MessageFns<
|
|
1153
|
+
MsgUpdateParamsResponse,
|
|
1154
|
+
"sentinel.subscription.v3.MsgUpdateParamsResponse"
|
|
1155
|
+
> = {
|
|
1156
|
+
$type: "sentinel.subscription.v3.MsgUpdateParamsResponse" as const,
|
|
1157
|
+
|
|
1158
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1159
|
+
return writer;
|
|
1160
|
+
},
|
|
1161
|
+
|
|
1162
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1163
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1164
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1165
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1166
|
+
while (reader.pos < end) {
|
|
1167
|
+
const tag = reader.uint32();
|
|
1168
|
+
switch (tag >>> 3) {
|
|
1169
|
+
}
|
|
1170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1171
|
+
break;
|
|
1172
|
+
}
|
|
1173
|
+
reader.skip(tag & 7);
|
|
1174
|
+
}
|
|
1175
|
+
return message;
|
|
1176
|
+
},
|
|
1177
|
+
|
|
1178
|
+
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
1179
|
+
return { $type: MsgUpdateParamsResponse.$type };
|
|
1180
|
+
},
|
|
1181
|
+
|
|
1182
|
+
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
1183
|
+
const obj: any = {};
|
|
1184
|
+
return obj;
|
|
1185
|
+
},
|
|
1186
|
+
|
|
1187
|
+
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse {
|
|
1188
|
+
return MsgUpdateParamsResponse.fromPartial(base ?? ({} as any));
|
|
1189
|
+
},
|
|
1190
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
1191
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1192
|
+
return message;
|
|
1193
|
+
},
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
messageTypeRegistry.set(MsgUpdateParamsResponse.$type, MsgUpdateParamsResponse);
|
|
1197
|
+
|
|
1198
|
+
export interface MsgService {
|
|
1199
|
+
MsgCancelSubscription(request: MsgCancelSubscriptionRequest): Promise<MsgCancelSubscriptionResponse>;
|
|
1200
|
+
MsgRenewSubscription(request: MsgRenewSubscriptionRequest): Promise<MsgRenewSubscriptionResponse>;
|
|
1201
|
+
MsgShareSubscription(request: MsgShareSubscriptionRequest): Promise<MsgShareSubscriptionResponse>;
|
|
1202
|
+
MsgStartSubscription(request: MsgStartSubscriptionRequest): Promise<MsgStartSubscriptionResponse>;
|
|
1203
|
+
MsgUpdateSubscription(request: MsgUpdateSubscriptionRequest): Promise<MsgUpdateSubscriptionResponse>;
|
|
1204
|
+
MsgStartSession(request: MsgStartSessionRequest): Promise<MsgStartSessionResponse>;
|
|
1205
|
+
MsgUpdateParams(request: MsgUpdateParamsRequest): Promise<MsgUpdateParamsResponse>;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
export const MsgServiceServiceName = "sentinel.subscription.v3.MsgService";
|
|
1209
|
+
export class MsgServiceClientImpl implements MsgService {
|
|
1210
|
+
private readonly rpc: Rpc;
|
|
1211
|
+
private readonly service: string;
|
|
1212
|
+
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1213
|
+
this.service = opts?.service || MsgServiceServiceName;
|
|
1214
|
+
this.rpc = rpc;
|
|
1215
|
+
this.MsgCancelSubscription = this.MsgCancelSubscription.bind(this);
|
|
1216
|
+
this.MsgRenewSubscription = this.MsgRenewSubscription.bind(this);
|
|
1217
|
+
this.MsgShareSubscription = this.MsgShareSubscription.bind(this);
|
|
1218
|
+
this.MsgStartSubscription = this.MsgStartSubscription.bind(this);
|
|
1219
|
+
this.MsgUpdateSubscription = this.MsgUpdateSubscription.bind(this);
|
|
1220
|
+
this.MsgStartSession = this.MsgStartSession.bind(this);
|
|
1221
|
+
this.MsgUpdateParams = this.MsgUpdateParams.bind(this);
|
|
1222
|
+
}
|
|
1223
|
+
MsgCancelSubscription(request: MsgCancelSubscriptionRequest): Promise<MsgCancelSubscriptionResponse> {
|
|
1224
|
+
const data = MsgCancelSubscriptionRequest.encode(request).finish();
|
|
1225
|
+
const promise = this.rpc.request(this.service, "MsgCancelSubscription", data);
|
|
1226
|
+
return promise.then((data) => MsgCancelSubscriptionResponse.decode(new BinaryReader(data)));
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
MsgRenewSubscription(request: MsgRenewSubscriptionRequest): Promise<MsgRenewSubscriptionResponse> {
|
|
1230
|
+
const data = MsgRenewSubscriptionRequest.encode(request).finish();
|
|
1231
|
+
const promise = this.rpc.request(this.service, "MsgRenewSubscription", data);
|
|
1232
|
+
return promise.then((data) => MsgRenewSubscriptionResponse.decode(new BinaryReader(data)));
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
MsgShareSubscription(request: MsgShareSubscriptionRequest): Promise<MsgShareSubscriptionResponse> {
|
|
1236
|
+
const data = MsgShareSubscriptionRequest.encode(request).finish();
|
|
1237
|
+
const promise = this.rpc.request(this.service, "MsgShareSubscription", data);
|
|
1238
|
+
return promise.then((data) => MsgShareSubscriptionResponse.decode(new BinaryReader(data)));
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
MsgStartSubscription(request: MsgStartSubscriptionRequest): Promise<MsgStartSubscriptionResponse> {
|
|
1242
|
+
const data = MsgStartSubscriptionRequest.encode(request).finish();
|
|
1243
|
+
const promise = this.rpc.request(this.service, "MsgStartSubscription", data);
|
|
1244
|
+
return promise.then((data) => MsgStartSubscriptionResponse.decode(new BinaryReader(data)));
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
MsgUpdateSubscription(request: MsgUpdateSubscriptionRequest): Promise<MsgUpdateSubscriptionResponse> {
|
|
1248
|
+
const data = MsgUpdateSubscriptionRequest.encode(request).finish();
|
|
1249
|
+
const promise = this.rpc.request(this.service, "MsgUpdateSubscription", data);
|
|
1250
|
+
return promise.then((data) => MsgUpdateSubscriptionResponse.decode(new BinaryReader(data)));
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
MsgStartSession(request: MsgStartSessionRequest): Promise<MsgStartSessionResponse> {
|
|
1254
|
+
const data = MsgStartSessionRequest.encode(request).finish();
|
|
1255
|
+
const promise = this.rpc.request(this.service, "MsgStartSession", data);
|
|
1256
|
+
return promise.then((data) => MsgStartSessionResponse.decode(new BinaryReader(data)));
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
MsgUpdateParams(request: MsgUpdateParamsRequest): Promise<MsgUpdateParamsResponse> {
|
|
1260
|
+
const data = MsgUpdateParamsRequest.encode(request).finish();
|
|
1261
|
+
const promise = this.rpc.request(this.service, "MsgUpdateParams", data);
|
|
1262
|
+
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
interface Rpc {
|
|
1267
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1271
|
+
|
|
1272
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
1273
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1274
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1275
|
+
: T extends {} ? { [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]> }
|
|
1276
|
+
: Partial<T>;
|
|
1277
|
+
|
|
1278
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1279
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1280
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never };
|
|
1281
|
+
|
|
1282
|
+
function longToNumber(int64: { toString(): string }): number {
|
|
1283
|
+
const num = globalThis.Number(int64.toString());
|
|
1284
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1285
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1286
|
+
}
|
|
1287
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1288
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1289
|
+
}
|
|
1290
|
+
return num;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
function isSet(value: any): boolean {
|
|
1294
|
+
return value !== null && value !== undefined;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
export interface MessageFns<T, V extends string> {
|
|
1298
|
+
readonly $type: V;
|
|
1299
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1300
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1301
|
+
fromJSON(object: any): T;
|
|
1302
|
+
toJSON(message: T): unknown;
|
|
1303
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1304
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1305
|
+
}
|