decentralcardgame-cardchain-client-ts 0.0.36 → 0.0.38
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/amino_adapter.d.ts +9 -0
- package/amino_adapter.js +22 -0
- package/cardchain.cardchain/module.js +53 -52
- package/cardchain.featureflag/module.js +3 -2
- package/client.js +1 -1
- package/cosmos.auth.v1beta1/module.js +2 -1
- package/cosmos.authz.v1beta1/module.js +4 -3
- package/cosmos.bank.v1beta1/module.js +5 -4
- package/cosmos.bank.v1beta1/rest.d.ts +20 -20
- package/cosmos.bank.v1beta1/rest.js +16 -16
- package/cosmos.circuit.v1/module.js +4 -3
- package/cosmos.consensus.v1/module.js +2 -1
- package/cosmos.crisis.v1beta1/module.js +3 -2
- package/cosmos.distribution.v1beta1/module.js +8 -7
- package/cosmos.evidence.v1beta1/module.js +2 -1
- package/cosmos.feegrant.v1beta1/module.js +4 -3
- package/cosmos.gov.v1/module.js +8 -7
- package/cosmos.gov.v1beta1/module.js +5 -4
- package/cosmos.group.v1/module.js +17 -14
- package/cosmos.group.v1/types.d.ts +2 -1
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.mint.v1beta1/module.js +2 -1
- package/cosmos.nft.v1beta1/module.js +2 -1
- package/cosmos.slashing.v1beta1/module.js +3 -2
- package/cosmos.staking.v1beta1/module.js +8 -7
- package/cosmos.tx.v1beta1/rest.d.ts +8 -0
- package/cosmos.upgrade.v1beta1/module.js +3 -2
- package/cosmos.vesting.v1beta1/module.js +4 -3
- package/ibc.applications.fee.v1/module.js +5 -4
- package/ibc.applications.interchain_accounts.controller.v1/module.js +4 -3
- package/ibc.applications.interchain_accounts.host.v1/module.js +3 -2
- package/ibc.applications.transfer.v1/module.js +3 -2
- package/ibc.core.channel.v1/module.js +20 -19
- package/ibc.core.client.v1/module.js +8 -7
- package/ibc.core.connection.v1/module.js +6 -5
- package/index.d.ts +20 -20
- package/index.js +9 -9
- package/package.json +1 -1
- package/types/cosmos/app/runtime/v1alpha1/module.d.ts +13 -1
- package/types/cosmos/app/runtime/v1alpha1/module.js +36 -0
- package/types/cosmos/app/v1alpha1/query.d.ts +6 -2
- package/types/cosmos/auth/module/v1/module.d.ts +6 -0
- package/types/cosmos/auth/module/v1/module.js +18 -1
- package/types/cosmos/auth/v1beta1/query.d.ts +21 -107
- package/types/cosmos/auth/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/authz/v1beta1/authz.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/event.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/genesis.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/query.d.ts +2 -11
- package/types/cosmos/authz/v1beta1/tx.d.ts +0 -1
- package/types/cosmos/autocli/v1/options.d.ts +21 -1
- package/types/cosmos/autocli/v1/options.js +65 -2
- package/types/cosmos/bank/v1beta1/authz.d.ts +0 -4
- package/types/cosmos/bank/v1beta1/bank.d.ts +2 -14
- package/types/cosmos/bank/v1beta1/genesis.d.ts +1 -5
- package/types/cosmos/bank/v1beta1/query.d.ts +12 -62
- package/types/cosmos/bank/v1beta1/query.js +6 -6
- package/types/cosmos/bank/v1beta1/tx.d.ts +2 -18
- package/types/cosmos/base/abci/v1beta1/abci.d.ts +2 -12
- package/types/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -1
- package/types/cosmos/base/tendermint/v1beta1/query.d.ts +0 -5
- package/types/cosmos/benchmark/module/v1/module.d.ts +52 -0
- package/types/cosmos/benchmark/module/v1/module.js +289 -0
- package/types/cosmos/benchmark/v1/benchmark.d.ts +32 -0
- package/types/cosmos/benchmark/v1/benchmark.js +164 -0
- package/types/cosmos/benchmark/v1/tx.d.ts +51 -0
- package/types/cosmos/benchmark/v1/tx.js +196 -0
- package/types/cosmos/consensus/v1/query.d.ts +0 -1
- package/types/cosmos/consensus/v1/tx.d.ts +0 -4
- package/types/cosmos/{orm/module/v1alpha1 → counter/module/v1}/module.d.ts +4 -6
- package/types/cosmos/counter/module/v1/module.js +62 -0
- package/types/cosmos/counter/v1/query.d.ts +47 -0
- package/types/cosmos/counter/v1/query.js +122 -0
- package/types/cosmos/counter/v1/tx.d.ts +52 -0
- package/types/cosmos/counter/v1/tx.js +153 -0
- package/types/cosmos/crisis/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/crypto/hd/v1/hd.d.ts +0 -1
- package/types/cosmos/crypto/keyring/v1/record.d.ts +0 -1
- package/types/cosmos/crypto/secp256r1/keys.d.ts +0 -1
- package/types/cosmos/distribution/v1beta1/query.d.ts +5 -1
- package/types/cosmos/distribution/v1beta1/tx.d.ts +4 -22
- package/types/cosmos/epochs/module/v1/module.d.ts +25 -0
- package/types/cosmos/{orm/module/v1alpha1 → epochs/module/v1}/module.js +2 -2
- package/types/cosmos/epochs/v1beta1/events.d.ts +32 -0
- package/types/cosmos/epochs/v1beta1/events.js +140 -0
- package/types/cosmos/epochs/v1beta1/genesis.d.ts +86 -0
- package/types/cosmos/epochs/v1beta1/genesis.js +256 -0
- package/types/cosmos/epochs/v1beta1/query.d.ts +73 -0
- package/types/cosmos/epochs/v1beta1/query.js +233 -0
- package/types/cosmos/evidence/v1beta1/query.d.ts +1 -5
- package/types/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -1
- package/types/cosmos/feegrant/v1beta1/genesis.d.ts +0 -1
- package/types/cosmos/feegrant/v1beta1/query.d.ts +3 -16
- package/types/cosmos/feegrant/v1beta1/tx.d.ts +3 -16
- package/types/cosmos/gov/v1/genesis.d.ts +1 -8
- package/types/cosmos/gov/v1/gov.d.ts +9 -50
- package/types/cosmos/gov/v1/gov.js +0 -1
- package/types/cosmos/gov/v1/query.d.ts +1 -6
- package/types/cosmos/gov/v1/tx.d.ts +6 -37
- package/types/cosmos/gov/v1beta1/gov.d.ts +2 -10
- package/types/cosmos/gov/v1beta1/tx.d.ts +3 -15
- package/types/cosmos/group/v1/events.d.ts +8 -1
- package/types/cosmos/group/v1/events.js +68 -0
- package/types/cosmos/group/v1/genesis.d.ts +0 -1
- package/types/cosmos/group/v1/query.d.ts +3 -16
- package/types/cosmos/group/v1/tx.d.ts +2 -11
- package/types/cosmos/group/v1/tx.js +0 -1
- package/types/cosmos/group/v1/types.d.ts +2 -11
- package/types/cosmos/group/v1/types.js +0 -1
- package/types/cosmos/mint/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/params/v1beta1/query.d.ts +1 -11
- package/types/cosmos/protocolpool/module/v1/module.d.ts +27 -0
- package/types/cosmos/protocolpool/module/v1/module.js +62 -0
- package/types/cosmos/protocolpool/v1/genesis.d.ts +33 -0
- package/types/cosmos/protocolpool/v1/genesis.js +84 -0
- package/types/cosmos/protocolpool/v1/query.d.ts +108 -0
- package/types/cosmos/protocolpool/v1/query.js +420 -0
- package/types/cosmos/protocolpool/v1/tx.d.ts +159 -0
- package/types/cosmos/protocolpool/v1/tx.js +700 -0
- package/types/cosmos/protocolpool/v1/types.d.ts +45 -0
- package/types/cosmos/protocolpool/v1/types.js +196 -0
- package/types/cosmos/slashing/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/staking/v1beta1/authz.d.ts +2 -10
- package/types/cosmos/staking/v1beta1/authz.js +1 -5
- package/types/cosmos/staking/v1beta1/staking.d.ts +1 -5
- package/types/cosmos/staking/v1beta1/tx.d.ts +4 -25
- package/types/cosmos/store/snapshots/v1/snapshot.d.ts +5 -25
- package/types/cosmos/store/v1beta1/listening.d.ts +0 -2
- package/types/cosmos/tx/v1beta1/service.d.ts +6 -52
- package/types/cosmos/tx/v1beta1/tx.d.ts +37 -17
- package/types/cosmos/tx/v1beta1/tx.js +61 -1
- package/types/cosmos/upgrade/v1beta1/query.d.ts +4 -25
- package/types/cosmos/upgrade/v1beta1/tx.d.ts +5 -28
- package/types/cosmos/vesting/v1beta1/tx.d.ts +1 -15
- package/types/cosmos/vesting/v1beta1/vesting.d.ts +0 -2
- package/types/cosmos/orm/query/v1alpha1/query.d.ts +0 -148
- package/types/cosmos/orm/query/v1alpha1/query.js +0 -705
- package/types/cosmos/orm/v1/orm.d.ts +0 -115
- package/types/cosmos/orm/v1/orm.js +0 -300
- package/types/cosmos/orm/v1alpha1/schema.d.ts +0 -77
- package/types/cosmos/orm/v1alpha1/schema.js +0 -243
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "cosmos.protocolpool.v1";
|
|
3
|
+
/** ContinuousFund defines the fields of continuous fund proposal. */
|
|
4
|
+
export interface ContinuousFund {
|
|
5
|
+
/** Recipient is the address string of the account receiving funds. */
|
|
6
|
+
recipient: string;
|
|
7
|
+
/** Percentage is the percentage of funds to be allocated from Community pool. */
|
|
8
|
+
percentage: string;
|
|
9
|
+
/** Optional, if expiry is set, removes the state object when expired. */
|
|
10
|
+
expiry: Date | undefined;
|
|
11
|
+
}
|
|
12
|
+
/** Params defines the parameters for the protocolpool module. */
|
|
13
|
+
export interface Params {
|
|
14
|
+
/**
|
|
15
|
+
* EnabledDistributionDenoms lists the denoms that are allowed to be distributed.
|
|
16
|
+
* This is to avoid spending time distributing undesired tokens to continuous funds and budgets.
|
|
17
|
+
*/
|
|
18
|
+
enabledDistributionDenoms: string[];
|
|
19
|
+
/**
|
|
20
|
+
* DistributionFrequency is the frequency (in terms of blocks) that funds are distributed out from the
|
|
21
|
+
* x/protocolpool module.
|
|
22
|
+
*/
|
|
23
|
+
distributionFrequency: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const ContinuousFund: MessageFns<ContinuousFund>;
|
|
26
|
+
export declare const Params: MessageFns<Params>;
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export interface MessageFns<T> {
|
|
38
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
39
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
40
|
+
fromJSON(object: any): T;
|
|
41
|
+
toJSON(message: T): unknown;
|
|
42
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
43
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.6.1
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: cosmos/protocolpool/v1/types.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
9
|
+
export const protobufPackage = "cosmos.protocolpool.v1";
|
|
10
|
+
function createBaseContinuousFund() {
|
|
11
|
+
return { recipient: "", percentage: "", expiry: undefined };
|
|
12
|
+
}
|
|
13
|
+
export const ContinuousFund = {
|
|
14
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15
|
+
if (message.recipient !== "") {
|
|
16
|
+
writer.uint32(10).string(message.recipient);
|
|
17
|
+
}
|
|
18
|
+
if (message.percentage !== "") {
|
|
19
|
+
writer.uint32(18).string(message.percentage);
|
|
20
|
+
}
|
|
21
|
+
if (message.expiry !== undefined) {
|
|
22
|
+
Timestamp.encode(toTimestamp(message.expiry), writer.uint32(26).fork()).join();
|
|
23
|
+
}
|
|
24
|
+
return writer;
|
|
25
|
+
},
|
|
26
|
+
decode(input, length) {
|
|
27
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
28
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
+
const message = createBaseContinuousFund();
|
|
30
|
+
while (reader.pos < end) {
|
|
31
|
+
const tag = reader.uint32();
|
|
32
|
+
switch (tag >>> 3) {
|
|
33
|
+
case 1: {
|
|
34
|
+
if (tag !== 10) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
message.recipient = reader.string();
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
case 2: {
|
|
41
|
+
if (tag !== 18) {
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
message.percentage = reader.string();
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
case 3: {
|
|
48
|
+
if (tag !== 26) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
message.expiry = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
reader.skip(tag & 7);
|
|
59
|
+
}
|
|
60
|
+
return message;
|
|
61
|
+
},
|
|
62
|
+
fromJSON(object) {
|
|
63
|
+
return {
|
|
64
|
+
recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
|
|
65
|
+
percentage: isSet(object.percentage) ? globalThis.String(object.percentage) : "",
|
|
66
|
+
expiry: isSet(object.expiry) ? fromJsonTimestamp(object.expiry) : undefined,
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
toJSON(message) {
|
|
70
|
+
const obj = {};
|
|
71
|
+
if (message.recipient !== "") {
|
|
72
|
+
obj.recipient = message.recipient;
|
|
73
|
+
}
|
|
74
|
+
if (message.percentage !== "") {
|
|
75
|
+
obj.percentage = message.percentage;
|
|
76
|
+
}
|
|
77
|
+
if (message.expiry !== undefined) {
|
|
78
|
+
obj.expiry = message.expiry.toISOString();
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
},
|
|
82
|
+
create(base) {
|
|
83
|
+
return ContinuousFund.fromPartial(base ?? {});
|
|
84
|
+
},
|
|
85
|
+
fromPartial(object) {
|
|
86
|
+
const message = createBaseContinuousFund();
|
|
87
|
+
message.recipient = object.recipient ?? "";
|
|
88
|
+
message.percentage = object.percentage ?? "";
|
|
89
|
+
message.expiry = object.expiry ?? undefined;
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
function createBaseParams() {
|
|
94
|
+
return { enabledDistributionDenoms: [], distributionFrequency: 0 };
|
|
95
|
+
}
|
|
96
|
+
export const Params = {
|
|
97
|
+
encode(message, writer = new BinaryWriter()) {
|
|
98
|
+
for (const v of message.enabledDistributionDenoms) {
|
|
99
|
+
writer.uint32(10).string(v);
|
|
100
|
+
}
|
|
101
|
+
if (message.distributionFrequency !== 0) {
|
|
102
|
+
writer.uint32(16).uint64(message.distributionFrequency);
|
|
103
|
+
}
|
|
104
|
+
return writer;
|
|
105
|
+
},
|
|
106
|
+
decode(input, length) {
|
|
107
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
108
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
109
|
+
const message = createBaseParams();
|
|
110
|
+
while (reader.pos < end) {
|
|
111
|
+
const tag = reader.uint32();
|
|
112
|
+
switch (tag >>> 3) {
|
|
113
|
+
case 1: {
|
|
114
|
+
if (tag !== 10) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.enabledDistributionDenoms.push(reader.string());
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
case 2: {
|
|
121
|
+
if (tag !== 16) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
message.distributionFrequency = longToNumber(reader.uint64());
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
reader.skip(tag & 7);
|
|
132
|
+
}
|
|
133
|
+
return message;
|
|
134
|
+
},
|
|
135
|
+
fromJSON(object) {
|
|
136
|
+
return {
|
|
137
|
+
enabledDistributionDenoms: globalThis.Array.isArray(object?.enabledDistributionDenoms)
|
|
138
|
+
? object.enabledDistributionDenoms.map((e) => globalThis.String(e))
|
|
139
|
+
: [],
|
|
140
|
+
distributionFrequency: isSet(object.distributionFrequency) ? globalThis.Number(object.distributionFrequency) : 0,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
toJSON(message) {
|
|
144
|
+
const obj = {};
|
|
145
|
+
if (message.enabledDistributionDenoms?.length) {
|
|
146
|
+
obj.enabledDistributionDenoms = message.enabledDistributionDenoms;
|
|
147
|
+
}
|
|
148
|
+
if (message.distributionFrequency !== 0) {
|
|
149
|
+
obj.distributionFrequency = Math.round(message.distributionFrequency);
|
|
150
|
+
}
|
|
151
|
+
return obj;
|
|
152
|
+
},
|
|
153
|
+
create(base) {
|
|
154
|
+
return Params.fromPartial(base ?? {});
|
|
155
|
+
},
|
|
156
|
+
fromPartial(object) {
|
|
157
|
+
const message = createBaseParams();
|
|
158
|
+
message.enabledDistributionDenoms = object.enabledDistributionDenoms?.map((e) => e) || [];
|
|
159
|
+
message.distributionFrequency = object.distributionFrequency ?? 0;
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
function toTimestamp(date) {
|
|
164
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
165
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
166
|
+
return { seconds, nanos };
|
|
167
|
+
}
|
|
168
|
+
function fromTimestamp(t) {
|
|
169
|
+
let millis = (t.seconds || 0) * 1000;
|
|
170
|
+
millis += (t.nanos || 0) / 1000000;
|
|
171
|
+
return new globalThis.Date(millis);
|
|
172
|
+
}
|
|
173
|
+
function fromJsonTimestamp(o) {
|
|
174
|
+
if (o instanceof globalThis.Date) {
|
|
175
|
+
return o;
|
|
176
|
+
}
|
|
177
|
+
else if (typeof o === "string") {
|
|
178
|
+
return new globalThis.Date(o);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function longToNumber(int64) {
|
|
185
|
+
const num = globalThis.Number(int64.toString());
|
|
186
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
187
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
188
|
+
}
|
|
189
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
190
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
191
|
+
}
|
|
192
|
+
return num;
|
|
193
|
+
}
|
|
194
|
+
function isSet(value) {
|
|
195
|
+
return value !== null && value !== undefined;
|
|
196
|
+
}
|
|
@@ -8,11 +8,7 @@ export interface MsgUnjail {
|
|
|
8
8
|
/** MsgUnjailResponse defines the Msg/Unjail response type */
|
|
9
9
|
export interface MsgUnjailResponse {
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
13
|
-
*
|
|
14
|
-
* Since: cosmos-sdk 0.47
|
|
15
|
-
*/
|
|
11
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
16
12
|
export interface MsgUpdateParams {
|
|
17
13
|
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
18
14
|
authority: string;
|
|
@@ -26,8 +22,6 @@ export interface MsgUpdateParams {
|
|
|
26
22
|
/**
|
|
27
23
|
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
28
24
|
* MsgUpdateParams message.
|
|
29
|
-
*
|
|
30
|
-
* Since: cosmos-sdk 0.47
|
|
31
25
|
*/
|
|
32
26
|
export interface MsgUpdateParamsResponse {
|
|
33
27
|
}
|
|
@@ -46,8 +40,6 @@ export interface Msg {
|
|
|
46
40
|
/**
|
|
47
41
|
* UpdateParams defines a governance operation for updating the x/slashing module
|
|
48
42
|
* parameters. The authority defaults to the x/gov module account.
|
|
49
|
-
*
|
|
50
|
-
* Since: cosmos-sdk 0.47
|
|
51
43
|
*/
|
|
52
44
|
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
53
45
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Coin } from "../../base/v1beta1/coin";
|
|
3
3
|
export declare const protobufPackage = "cosmos.staking.v1beta1";
|
|
4
|
-
/**
|
|
5
|
-
* AuthorizationType defines the type of staking module authorization type
|
|
6
|
-
*
|
|
7
|
-
* Since: cosmos-sdk 0.43
|
|
8
|
-
*/
|
|
4
|
+
/** AuthorizationType defines the type of staking module authorization type */
|
|
9
5
|
export declare enum AuthorizationType {
|
|
10
6
|
/** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
|
|
11
7
|
AUTHORIZATION_TYPE_UNSPECIFIED = 0,
|
|
@@ -21,11 +17,7 @@ export declare enum AuthorizationType {
|
|
|
21
17
|
}
|
|
22
18
|
export declare function authorizationTypeFromJSON(object: any): AuthorizationType;
|
|
23
19
|
export declare function authorizationTypeToJSON(object: AuthorizationType): string;
|
|
24
|
-
/**
|
|
25
|
-
* StakeAuthorization defines authorization for delegate/undelegate/redelegate.
|
|
26
|
-
*
|
|
27
|
-
* Since: cosmos-sdk 0.43
|
|
28
|
-
*/
|
|
20
|
+
/** StakeAuthorization defines authorization for delegate/undelegate/redelegate. */
|
|
29
21
|
export interface StakeAuthorization {
|
|
30
22
|
/**
|
|
31
23
|
* max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
|
|
@@ -7,11 +7,7 @@
|
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
8
|
import { Coin } from "../../base/v1beta1/coin";
|
|
9
9
|
export const protobufPackage = "cosmos.staking.v1beta1";
|
|
10
|
-
/**
|
|
11
|
-
* AuthorizationType defines the type of staking module authorization type
|
|
12
|
-
*
|
|
13
|
-
* Since: cosmos-sdk 0.43
|
|
14
|
-
*/
|
|
10
|
+
/** AuthorizationType defines the type of staking module authorization type */
|
|
15
11
|
export var AuthorizationType;
|
|
16
12
|
(function (AuthorizationType) {
|
|
17
13
|
/** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
|
|
@@ -104,11 +104,7 @@ export interface Validator {
|
|
|
104
104
|
unbondingTime: Date | undefined;
|
|
105
105
|
/** commission defines the commission parameters. */
|
|
106
106
|
commission: Commission | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* min_self_delegation is the validator's self declared minimum self delegation.
|
|
109
|
-
*
|
|
110
|
-
* Since: cosmos-sdk 0.46
|
|
111
|
-
*/
|
|
107
|
+
/** min_self_delegation is the validator's self declared minimum self delegation. */
|
|
112
108
|
minSelfDelegation: string;
|
|
113
109
|
/** strictly positive if this validator's unbonding has been stopped by external modules */
|
|
114
110
|
unbondingOnHoldRefCount: number;
|
|
@@ -77,18 +77,10 @@ export interface MsgUndelegate {
|
|
|
77
77
|
/** MsgUndelegateResponse defines the Msg/Undelegate response type. */
|
|
78
78
|
export interface MsgUndelegateResponse {
|
|
79
79
|
completionTime: Date | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* amount returns the amount of undelegated coins
|
|
82
|
-
*
|
|
83
|
-
* Since: cosmos-sdk 0.50
|
|
84
|
-
*/
|
|
80
|
+
/** amount returns the amount of undelegated coins */
|
|
85
81
|
amount: Coin | undefined;
|
|
86
82
|
}
|
|
87
|
-
/**
|
|
88
|
-
* MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
|
|
89
|
-
*
|
|
90
|
-
* Since: cosmos-sdk 0.46
|
|
91
|
-
*/
|
|
83
|
+
/** MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator */
|
|
92
84
|
export interface MsgCancelUnbondingDelegation {
|
|
93
85
|
delegatorAddress: string;
|
|
94
86
|
validatorAddress: string;
|
|
@@ -97,18 +89,10 @@ export interface MsgCancelUnbondingDelegation {
|
|
|
97
89
|
/** creation_height is the height which the unbonding took place. */
|
|
98
90
|
creationHeight: number;
|
|
99
91
|
}
|
|
100
|
-
/**
|
|
101
|
-
* MsgCancelUnbondingDelegationResponse
|
|
102
|
-
*
|
|
103
|
-
* Since: cosmos-sdk 0.46
|
|
104
|
-
*/
|
|
92
|
+
/** MsgCancelUnbondingDelegationResponse */
|
|
105
93
|
export interface MsgCancelUnbondingDelegationResponse {
|
|
106
94
|
}
|
|
107
|
-
/**
|
|
108
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
109
|
-
*
|
|
110
|
-
* Since: cosmos-sdk 0.47
|
|
111
|
-
*/
|
|
95
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
112
96
|
export interface MsgUpdateParams {
|
|
113
97
|
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
114
98
|
authority: string;
|
|
@@ -122,8 +106,6 @@ export interface MsgUpdateParams {
|
|
|
122
106
|
/**
|
|
123
107
|
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
124
108
|
* MsgUpdateParams message.
|
|
125
|
-
*
|
|
126
|
-
* Since: cosmos-sdk 0.47
|
|
127
109
|
*/
|
|
128
110
|
export interface MsgUpdateParamsResponse {
|
|
129
111
|
}
|
|
@@ -165,14 +147,11 @@ export interface Msg {
|
|
|
165
147
|
/**
|
|
166
148
|
* CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
|
|
167
149
|
* and delegate back to previous validator.
|
|
168
|
-
*
|
|
169
|
-
* Since: cosmos-sdk 0.46
|
|
170
150
|
*/
|
|
171
151
|
CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse>;
|
|
172
152
|
/**
|
|
173
153
|
* UpdateParams defines an operation for updating the x/staking module
|
|
174
154
|
* parameters.
|
|
175
|
-
* Since: cosmos-sdk 0.47
|
|
176
155
|
*/
|
|
177
156
|
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
178
157
|
}
|
|
@@ -13,30 +13,18 @@ export interface Metadata {
|
|
|
13
13
|
/** SHA-256 chunk hashes */
|
|
14
14
|
chunkHashes: Uint8Array[];
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
17
|
-
* SnapshotItem is an item contained in a rootmulti.Store snapshot.
|
|
18
|
-
*
|
|
19
|
-
* Since: cosmos-sdk 0.46
|
|
20
|
-
*/
|
|
16
|
+
/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */
|
|
21
17
|
export interface SnapshotItem {
|
|
22
18
|
store?: SnapshotStoreItem | undefined;
|
|
23
19
|
iavl?: SnapshotIAVLItem | undefined;
|
|
24
20
|
extension?: SnapshotExtensionMeta | undefined;
|
|
25
21
|
extensionPayload?: SnapshotExtensionPayload | undefined;
|
|
26
22
|
}
|
|
27
|
-
/**
|
|
28
|
-
* SnapshotStoreItem contains metadata about a snapshotted store.
|
|
29
|
-
*
|
|
30
|
-
* Since: cosmos-sdk 0.46
|
|
31
|
-
*/
|
|
23
|
+
/** SnapshotStoreItem contains metadata about a snapshotted store. */
|
|
32
24
|
export interface SnapshotStoreItem {
|
|
33
25
|
name: string;
|
|
34
26
|
}
|
|
35
|
-
/**
|
|
36
|
-
* SnapshotIAVLItem is an exported IAVL node.
|
|
37
|
-
*
|
|
38
|
-
* Since: cosmos-sdk 0.46
|
|
39
|
-
*/
|
|
27
|
+
/** SnapshotIAVLItem is an exported IAVL node. */
|
|
40
28
|
export interface SnapshotIAVLItem {
|
|
41
29
|
key: Uint8Array;
|
|
42
30
|
value: Uint8Array;
|
|
@@ -45,20 +33,12 @@ export interface SnapshotIAVLItem {
|
|
|
45
33
|
/** height is depth of the tree. */
|
|
46
34
|
height: number;
|
|
47
35
|
}
|
|
48
|
-
/**
|
|
49
|
-
* SnapshotExtensionMeta contains metadata about an external snapshotter.
|
|
50
|
-
*
|
|
51
|
-
* Since: cosmos-sdk 0.46
|
|
52
|
-
*/
|
|
36
|
+
/** SnapshotExtensionMeta contains metadata about an external snapshotter. */
|
|
53
37
|
export interface SnapshotExtensionMeta {
|
|
54
38
|
name: string;
|
|
55
39
|
format: number;
|
|
56
40
|
}
|
|
57
|
-
/**
|
|
58
|
-
* SnapshotExtensionPayload contains payloads of an external snapshotter.
|
|
59
|
-
*
|
|
60
|
-
* Since: cosmos-sdk 0.46
|
|
61
|
-
*/
|
|
41
|
+
/** SnapshotExtensionPayload contains payloads of an external snapshotter. */
|
|
62
42
|
export interface SnapshotExtensionPayload {
|
|
63
43
|
payload: Uint8Array;
|
|
64
44
|
}
|
|
@@ -5,8 +5,6 @@ export declare const protobufPackage = "cosmos.store.v1beta1";
|
|
|
5
5
|
* StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
|
|
6
6
|
* It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
|
|
7
7
|
* Deletes
|
|
8
|
-
*
|
|
9
|
-
* Since: cosmos-sdk 0.43
|
|
10
8
|
*/
|
|
11
9
|
export interface StoreKVPair {
|
|
12
10
|
/** the store key for the KVStore this pair originates from */
|
|
@@ -82,8 +82,6 @@ export interface GetTxsEventRequest {
|
|
|
82
82
|
/**
|
|
83
83
|
* query defines the transaction event query that is proxied to Tendermint's
|
|
84
84
|
* TxSearch RPC method. The query must be valid.
|
|
85
|
-
*
|
|
86
|
-
* Since cosmos-sdk 0.50
|
|
87
85
|
*/
|
|
88
86
|
query: string;
|
|
89
87
|
}
|
|
@@ -135,11 +133,7 @@ export interface SimulateRequest {
|
|
|
135
133
|
* @deprecated
|
|
136
134
|
*/
|
|
137
135
|
tx: Tx | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* tx_bytes is the raw transaction.
|
|
140
|
-
*
|
|
141
|
-
* Since: cosmos-sdk 0.43
|
|
142
|
-
*/
|
|
136
|
+
/** tx_bytes is the raw transaction. */
|
|
143
137
|
txBytes: Uint8Array;
|
|
144
138
|
}
|
|
145
139
|
/**
|
|
@@ -170,8 +164,6 @@ export interface GetTxResponse {
|
|
|
170
164
|
/**
|
|
171
165
|
* GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs
|
|
172
166
|
* RPC method.
|
|
173
|
-
*
|
|
174
|
-
* Since: cosmos-sdk 0.45.2
|
|
175
167
|
*/
|
|
176
168
|
export interface GetBlockWithTxsRequest {
|
|
177
169
|
/** height is the height of the block to query. */
|
|
@@ -182,8 +174,6 @@ export interface GetBlockWithTxsRequest {
|
|
|
182
174
|
/**
|
|
183
175
|
* GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs
|
|
184
176
|
* method.
|
|
185
|
-
*
|
|
186
|
-
* Since: cosmos-sdk 0.45.2
|
|
187
177
|
*/
|
|
188
178
|
export interface GetBlockWithTxsResponse {
|
|
189
179
|
/** txs are the transactions in the block. */
|
|
@@ -196,8 +186,6 @@ export interface GetBlockWithTxsResponse {
|
|
|
196
186
|
/**
|
|
197
187
|
* TxDecodeRequest is the request type for the Service.TxDecode
|
|
198
188
|
* RPC method.
|
|
199
|
-
*
|
|
200
|
-
* Since: cosmos-sdk 0.47
|
|
201
189
|
*/
|
|
202
190
|
export interface TxDecodeRequest {
|
|
203
191
|
/** tx_bytes is the raw transaction. */
|
|
@@ -206,8 +194,6 @@ export interface TxDecodeRequest {
|
|
|
206
194
|
/**
|
|
207
195
|
* TxDecodeResponse is the response type for the
|
|
208
196
|
* Service.TxDecode method.
|
|
209
|
-
*
|
|
210
|
-
* Since: cosmos-sdk 0.47
|
|
211
197
|
*/
|
|
212
198
|
export interface TxDecodeResponse {
|
|
213
199
|
/** tx is the decoded transaction. */
|
|
@@ -216,8 +202,6 @@ export interface TxDecodeResponse {
|
|
|
216
202
|
/**
|
|
217
203
|
* TxEncodeRequest is the request type for the Service.TxEncode
|
|
218
204
|
* RPC method.
|
|
219
|
-
*
|
|
220
|
-
* Since: cosmos-sdk 0.47
|
|
221
205
|
*/
|
|
222
206
|
export interface TxEncodeRequest {
|
|
223
207
|
/** tx is the transaction to encode. */
|
|
@@ -226,8 +210,6 @@ export interface TxEncodeRequest {
|
|
|
226
210
|
/**
|
|
227
211
|
* TxEncodeResponse is the response type for the
|
|
228
212
|
* Service.TxEncode method.
|
|
229
|
-
*
|
|
230
|
-
* Since: cosmos-sdk 0.47
|
|
231
213
|
*/
|
|
232
214
|
export interface TxEncodeResponse {
|
|
233
215
|
/** tx_bytes is the encoded transaction bytes. */
|
|
@@ -236,8 +218,6 @@ export interface TxEncodeResponse {
|
|
|
236
218
|
/**
|
|
237
219
|
* TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino
|
|
238
220
|
* RPC method.
|
|
239
|
-
*
|
|
240
|
-
* Since: cosmos-sdk 0.47
|
|
241
221
|
*/
|
|
242
222
|
export interface TxEncodeAminoRequest {
|
|
243
223
|
aminoJson: string;
|
|
@@ -245,8 +225,6 @@ export interface TxEncodeAminoRequest {
|
|
|
245
225
|
/**
|
|
246
226
|
* TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino
|
|
247
227
|
* RPC method.
|
|
248
|
-
*
|
|
249
|
-
* Since: cosmos-sdk 0.47
|
|
250
228
|
*/
|
|
251
229
|
export interface TxEncodeAminoResponse {
|
|
252
230
|
aminoBinary: Uint8Array;
|
|
@@ -254,8 +232,6 @@ export interface TxEncodeAminoResponse {
|
|
|
254
232
|
/**
|
|
255
233
|
* TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino
|
|
256
234
|
* RPC method.
|
|
257
|
-
*
|
|
258
|
-
* Since: cosmos-sdk 0.47
|
|
259
235
|
*/
|
|
260
236
|
export interface TxDecodeAminoRequest {
|
|
261
237
|
aminoBinary: Uint8Array;
|
|
@@ -263,8 +239,6 @@ export interface TxDecodeAminoRequest {
|
|
|
263
239
|
/**
|
|
264
240
|
* TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino
|
|
265
241
|
* RPC method.
|
|
266
|
-
*
|
|
267
|
-
* Since: cosmos-sdk 0.47
|
|
268
242
|
*/
|
|
269
243
|
export interface TxDecodeAminoResponse {
|
|
270
244
|
aminoJson: string;
|
|
@@ -297,35 +271,15 @@ export interface Service {
|
|
|
297
271
|
BroadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
|
|
298
272
|
/** GetTxsEvent fetches txs by event. */
|
|
299
273
|
GetTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
|
|
300
|
-
/**
|
|
301
|
-
* GetBlockWithTxs fetches a block with decoded txs.
|
|
302
|
-
*
|
|
303
|
-
* Since: cosmos-sdk 0.45.2
|
|
304
|
-
*/
|
|
274
|
+
/** GetBlockWithTxs fetches a block with decoded txs. */
|
|
305
275
|
GetBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
|
|
306
|
-
/**
|
|
307
|
-
* TxDecode decodes the transaction.
|
|
308
|
-
*
|
|
309
|
-
* Since: cosmos-sdk 0.47
|
|
310
|
-
*/
|
|
276
|
+
/** TxDecode decodes the transaction. */
|
|
311
277
|
TxDecode(request: TxDecodeRequest): Promise<TxDecodeResponse>;
|
|
312
|
-
/**
|
|
313
|
-
* TxEncode encodes the transaction.
|
|
314
|
-
*
|
|
315
|
-
* Since: cosmos-sdk 0.47
|
|
316
|
-
*/
|
|
278
|
+
/** TxEncode encodes the transaction. */
|
|
317
279
|
TxEncode(request: TxEncodeRequest): Promise<TxEncodeResponse>;
|
|
318
|
-
/**
|
|
319
|
-
* TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
|
|
320
|
-
*
|
|
321
|
-
* Since: cosmos-sdk 0.47
|
|
322
|
-
*/
|
|
280
|
+
/** TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. */
|
|
323
281
|
TxEncodeAmino(request: TxEncodeAminoRequest): Promise<TxEncodeAminoResponse>;
|
|
324
|
-
/**
|
|
325
|
-
* TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
|
|
326
|
-
*
|
|
327
|
-
* Since: cosmos-sdk 0.47
|
|
328
|
-
*/
|
|
282
|
+
/** TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. */
|
|
329
283
|
TxDecodeAmino(request: TxDecodeAminoRequest): Promise<TxDecodeAminoResponse>;
|
|
330
284
|
}
|
|
331
285
|
export declare const ServiceServiceName = "cosmos.tx.v1beta1.Service";
|