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
|
@@ -1,243 +0,0 @@
|
|
|
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/orm/v1alpha1/schema.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
-
export const protobufPackage = "cosmos.orm.v1alpha1";
|
|
9
|
-
/** StorageType */
|
|
10
|
-
export var StorageType;
|
|
11
|
-
(function (StorageType) {
|
|
12
|
-
/**
|
|
13
|
-
* STORAGE_TYPE_DEFAULT_UNSPECIFIED - STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent storage where all
|
|
14
|
-
* data is stored in the regular Merkle-tree backed KV-store.
|
|
15
|
-
*/
|
|
16
|
-
StorageType[StorageType["STORAGE_TYPE_DEFAULT_UNSPECIFIED"] = 0] = "STORAGE_TYPE_DEFAULT_UNSPECIFIED";
|
|
17
|
-
/**
|
|
18
|
-
* STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be
|
|
19
|
-
* reloaded every time an app restarts. Tables with this type of storage
|
|
20
|
-
* will by default be ignored when importing and exporting a module's
|
|
21
|
-
* state from JSON.
|
|
22
|
-
*/
|
|
23
|
-
StorageType[StorageType["STORAGE_TYPE_MEMORY"] = 1] = "STORAGE_TYPE_MEMORY";
|
|
24
|
-
/**
|
|
25
|
-
* STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset
|
|
26
|
-
* at the end of every block. Tables with this type of storage
|
|
27
|
-
* will by default be ignored when importing and exporting a module's
|
|
28
|
-
* state from JSON.
|
|
29
|
-
*/
|
|
30
|
-
StorageType[StorageType["STORAGE_TYPE_TRANSIENT"] = 2] = "STORAGE_TYPE_TRANSIENT";
|
|
31
|
-
StorageType[StorageType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
32
|
-
})(StorageType || (StorageType = {}));
|
|
33
|
-
export function storageTypeFromJSON(object) {
|
|
34
|
-
switch (object) {
|
|
35
|
-
case 0:
|
|
36
|
-
case "STORAGE_TYPE_DEFAULT_UNSPECIFIED":
|
|
37
|
-
return StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED;
|
|
38
|
-
case 1:
|
|
39
|
-
case "STORAGE_TYPE_MEMORY":
|
|
40
|
-
return StorageType.STORAGE_TYPE_MEMORY;
|
|
41
|
-
case 2:
|
|
42
|
-
case "STORAGE_TYPE_TRANSIENT":
|
|
43
|
-
return StorageType.STORAGE_TYPE_TRANSIENT;
|
|
44
|
-
case -1:
|
|
45
|
-
case "UNRECOGNIZED":
|
|
46
|
-
default:
|
|
47
|
-
return StorageType.UNRECOGNIZED;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export function storageTypeToJSON(object) {
|
|
51
|
-
switch (object) {
|
|
52
|
-
case StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED:
|
|
53
|
-
return "STORAGE_TYPE_DEFAULT_UNSPECIFIED";
|
|
54
|
-
case StorageType.STORAGE_TYPE_MEMORY:
|
|
55
|
-
return "STORAGE_TYPE_MEMORY";
|
|
56
|
-
case StorageType.STORAGE_TYPE_TRANSIENT:
|
|
57
|
-
return "STORAGE_TYPE_TRANSIENT";
|
|
58
|
-
case StorageType.UNRECOGNIZED:
|
|
59
|
-
default:
|
|
60
|
-
return "UNRECOGNIZED";
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function createBaseModuleSchemaDescriptor() {
|
|
64
|
-
return { schemaFile: [], prefix: new Uint8Array(0) };
|
|
65
|
-
}
|
|
66
|
-
export const ModuleSchemaDescriptor = {
|
|
67
|
-
encode(message, writer = new BinaryWriter()) {
|
|
68
|
-
for (const v of message.schemaFile) {
|
|
69
|
-
ModuleSchemaDescriptor_FileEntry.encode(v, writer.uint32(10).fork()).join();
|
|
70
|
-
}
|
|
71
|
-
if (message.prefix.length !== 0) {
|
|
72
|
-
writer.uint32(18).bytes(message.prefix);
|
|
73
|
-
}
|
|
74
|
-
return writer;
|
|
75
|
-
},
|
|
76
|
-
decode(input, length) {
|
|
77
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
78
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
-
const message = createBaseModuleSchemaDescriptor();
|
|
80
|
-
while (reader.pos < end) {
|
|
81
|
-
const tag = reader.uint32();
|
|
82
|
-
switch (tag >>> 3) {
|
|
83
|
-
case 1: {
|
|
84
|
-
if (tag !== 10) {
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
message.schemaFile.push(ModuleSchemaDescriptor_FileEntry.decode(reader, reader.uint32()));
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
case 2: {
|
|
91
|
-
if (tag !== 18) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
message.prefix = reader.bytes();
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
reader.skip(tag & 7);
|
|
102
|
-
}
|
|
103
|
-
return message;
|
|
104
|
-
},
|
|
105
|
-
fromJSON(object) {
|
|
106
|
-
return {
|
|
107
|
-
schemaFile: globalThis.Array.isArray(object?.schemaFile)
|
|
108
|
-
? object.schemaFile.map((e) => ModuleSchemaDescriptor_FileEntry.fromJSON(e))
|
|
109
|
-
: [],
|
|
110
|
-
prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array(0),
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
toJSON(message) {
|
|
114
|
-
const obj = {};
|
|
115
|
-
if (message.schemaFile?.length) {
|
|
116
|
-
obj.schemaFile = message.schemaFile.map((e) => ModuleSchemaDescriptor_FileEntry.toJSON(e));
|
|
117
|
-
}
|
|
118
|
-
if (message.prefix.length !== 0) {
|
|
119
|
-
obj.prefix = base64FromBytes(message.prefix);
|
|
120
|
-
}
|
|
121
|
-
return obj;
|
|
122
|
-
},
|
|
123
|
-
create(base) {
|
|
124
|
-
return ModuleSchemaDescriptor.fromPartial(base ?? {});
|
|
125
|
-
},
|
|
126
|
-
fromPartial(object) {
|
|
127
|
-
const message = createBaseModuleSchemaDescriptor();
|
|
128
|
-
message.schemaFile = object.schemaFile?.map((e) => ModuleSchemaDescriptor_FileEntry.fromPartial(e)) || [];
|
|
129
|
-
message.prefix = object.prefix ?? new Uint8Array(0);
|
|
130
|
-
return message;
|
|
131
|
-
},
|
|
132
|
-
};
|
|
133
|
-
function createBaseModuleSchemaDescriptor_FileEntry() {
|
|
134
|
-
return { id: 0, protoFileName: "", storageType: 0 };
|
|
135
|
-
}
|
|
136
|
-
export const ModuleSchemaDescriptor_FileEntry = {
|
|
137
|
-
encode(message, writer = new BinaryWriter()) {
|
|
138
|
-
if (message.id !== 0) {
|
|
139
|
-
writer.uint32(8).uint32(message.id);
|
|
140
|
-
}
|
|
141
|
-
if (message.protoFileName !== "") {
|
|
142
|
-
writer.uint32(18).string(message.protoFileName);
|
|
143
|
-
}
|
|
144
|
-
if (message.storageType !== 0) {
|
|
145
|
-
writer.uint32(24).int32(message.storageType);
|
|
146
|
-
}
|
|
147
|
-
return writer;
|
|
148
|
-
},
|
|
149
|
-
decode(input, length) {
|
|
150
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
151
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
|
-
const message = createBaseModuleSchemaDescriptor_FileEntry();
|
|
153
|
-
while (reader.pos < end) {
|
|
154
|
-
const tag = reader.uint32();
|
|
155
|
-
switch (tag >>> 3) {
|
|
156
|
-
case 1: {
|
|
157
|
-
if (tag !== 8) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
message.id = reader.uint32();
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
case 2: {
|
|
164
|
-
if (tag !== 18) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
message.protoFileName = reader.string();
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
case 3: {
|
|
171
|
-
if (tag !== 24) {
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
message.storageType = reader.int32();
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
reader.skip(tag & 7);
|
|
182
|
-
}
|
|
183
|
-
return message;
|
|
184
|
-
},
|
|
185
|
-
fromJSON(object) {
|
|
186
|
-
return {
|
|
187
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
188
|
-
protoFileName: isSet(object.protoFileName) ? globalThis.String(object.protoFileName) : "",
|
|
189
|
-
storageType: isSet(object.storageType) ? storageTypeFromJSON(object.storageType) : 0,
|
|
190
|
-
};
|
|
191
|
-
},
|
|
192
|
-
toJSON(message) {
|
|
193
|
-
const obj = {};
|
|
194
|
-
if (message.id !== 0) {
|
|
195
|
-
obj.id = Math.round(message.id);
|
|
196
|
-
}
|
|
197
|
-
if (message.protoFileName !== "") {
|
|
198
|
-
obj.protoFileName = message.protoFileName;
|
|
199
|
-
}
|
|
200
|
-
if (message.storageType !== 0) {
|
|
201
|
-
obj.storageType = storageTypeToJSON(message.storageType);
|
|
202
|
-
}
|
|
203
|
-
return obj;
|
|
204
|
-
},
|
|
205
|
-
create(base) {
|
|
206
|
-
return ModuleSchemaDescriptor_FileEntry.fromPartial(base ?? {});
|
|
207
|
-
},
|
|
208
|
-
fromPartial(object) {
|
|
209
|
-
const message = createBaseModuleSchemaDescriptor_FileEntry();
|
|
210
|
-
message.id = object.id ?? 0;
|
|
211
|
-
message.protoFileName = object.protoFileName ?? "";
|
|
212
|
-
message.storageType = object.storageType ?? 0;
|
|
213
|
-
return message;
|
|
214
|
-
},
|
|
215
|
-
};
|
|
216
|
-
function bytesFromBase64(b64) {
|
|
217
|
-
if (globalThis.Buffer) {
|
|
218
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
219
|
-
}
|
|
220
|
-
else {
|
|
221
|
-
const bin = globalThis.atob(b64);
|
|
222
|
-
const arr = new Uint8Array(bin.length);
|
|
223
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
224
|
-
arr[i] = bin.charCodeAt(i);
|
|
225
|
-
}
|
|
226
|
-
return arr;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
function base64FromBytes(arr) {
|
|
230
|
-
if (globalThis.Buffer) {
|
|
231
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
const bin = [];
|
|
235
|
-
arr.forEach((byte) => {
|
|
236
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
237
|
-
});
|
|
238
|
-
return globalThis.btoa(bin.join(""));
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
function isSet(value) {
|
|
242
|
-
return value !== null && value !== undefined;
|
|
243
|
-
}
|