decentralcardgame-cardchain-client-ts 0.0.41 → 0.0.43

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/lib/index.js CHANGED
@@ -4,18 +4,8 @@ import { IgniteClient } from "./client";
4
4
  import { MissingWalletError } from "./helpers";
5
5
  import { IgntModule as CardchainCardchain, msgTypes as CardchainCardchainMsgTypes } from './cardchain.cardchain';
6
6
  import { IgntModule as CardchainFeatureflag, msgTypes as CardchainFeatureflagMsgTypes } from './cardchain.featureflag';
7
- import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1';
8
- import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1';
9
- import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1';
10
- import { IgntModule as IbcApplicationsInterchainAccountsHostV_1, msgTypes as IbcApplicationsInterchainAccountsHostV_1MsgTypes } from './ibc.applications.interchain_accounts.host.v1';
11
- import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTransferV_1MsgTypes } from './ibc.applications.transfer.v1';
12
- import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1';
13
- import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1';
14
- import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1';
15
- import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1';
16
- import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1';
17
- import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1';
18
7
  import { IgntModule as CosmosEvidenceV_1Beta_1, msgTypes as CosmosEvidenceV_1Beta_1MsgTypes } from './cosmos.evidence.v1beta1';
8
+ import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1';
19
9
  import { IgntModule as CosmosAuthV_1Beta_1, msgTypes as CosmosAuthV_1Beta_1MsgTypes } from './cosmos.auth.v1beta1';
20
10
  import { IgntModule as CosmosAuthzV_1Beta_1, msgTypes as CosmosAuthzV_1Beta_1MsgTypes } from './cosmos.authz.v1beta1';
21
11
  import { IgntModule as CosmosBankV_1Beta_1, msgTypes as CosmosBankV_1Beta_1MsgTypes } from './cosmos.bank.v1beta1';
@@ -33,24 +23,24 @@ import { IgntModule as CosmosSlashingV_1Beta_1, msgTypes as CosmosSlashingV_1Bet
33
23
  import { IgntModule as CosmosStakingV_1Beta_1, msgTypes as CosmosStakingV_1Beta_1MsgTypes } from './cosmos.staking.v1beta1';
34
24
  import { IgntModule as CosmosTxV_1Beta_1, msgTypes as CosmosTxV_1Beta_1MsgTypes } from './cosmos.tx.v1beta1';
35
25
  import { IgntModule as CosmosVestingV_1Beta_1, msgTypes as CosmosVestingV_1Beta_1MsgTypes } from './cosmos.vesting.v1beta1';
26
+ import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1';
27
+ import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1';
28
+ import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1';
29
+ import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1';
30
+ import { IgntModule as IbcApplicationsInterchainAccountsHostV_1, msgTypes as IbcApplicationsInterchainAccountsHostV_1MsgTypes } from './ibc.applications.interchain_accounts.host.v1';
31
+ import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTransferV_1MsgTypes } from './ibc.applications.transfer.v1';
32
+ import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1';
33
+ import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1';
34
+ import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1';
35
+ import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1';
36
36
  const Client = IgniteClient.plugin([
37
- CardchainCardchain, CardchainFeatureflag, CosmosUpgradeV_1Beta_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosFeegrantV_1Beta_1, CosmosCircuitV_1, CosmosNftV_1Beta_1, CosmosEvidenceV_1Beta_1, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1
37
+ CardchainCardchain, CardchainFeatureflag, CosmosEvidenceV_1Beta_1, CosmosFeegrantV_1Beta_1, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1, CosmosUpgradeV_1Beta_1, CosmosCircuitV_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosNftV_1Beta_1
38
38
  ]);
39
39
  const registry = new Registry([
40
40
  ...CardchainCardchainMsgTypes,
41
41
  ...CardchainFeatureflagMsgTypes,
42
- ...CosmosUpgradeV_1Beta_1MsgTypes,
43
- ...IbcApplicationsFeeV_1MsgTypes,
44
- ...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
45
- ...IbcApplicationsInterchainAccountsHostV_1MsgTypes,
46
- ...IbcApplicationsTransferV_1MsgTypes,
47
- ...IbcCoreChannelV_1MsgTypes,
48
- ...IbcCoreClientV_1MsgTypes,
49
- ...IbcCoreConnectionV_1MsgTypes,
50
- ...CosmosFeegrantV_1Beta_1MsgTypes,
51
- ...CosmosCircuitV_1MsgTypes,
52
- ...CosmosNftV_1Beta_1MsgTypes,
53
42
  ...CosmosEvidenceV_1Beta_1MsgTypes,
43
+ ...CosmosFeegrantV_1Beta_1MsgTypes,
54
44
  ...CosmosAuthV_1Beta_1MsgTypes,
55
45
  ...CosmosAuthzV_1Beta_1MsgTypes,
56
46
  ...CosmosBankV_1Beta_1MsgTypes,
@@ -68,5 +58,15 @@ const registry = new Registry([
68
58
  ...CosmosStakingV_1Beta_1MsgTypes,
69
59
  ...CosmosTxV_1Beta_1MsgTypes,
70
60
  ...CosmosVestingV_1Beta_1MsgTypes,
61
+ ...CosmosUpgradeV_1Beta_1MsgTypes,
62
+ ...CosmosCircuitV_1MsgTypes,
63
+ ...IbcApplicationsFeeV_1MsgTypes,
64
+ ...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
65
+ ...IbcApplicationsInterchainAccountsHostV_1MsgTypes,
66
+ ...IbcApplicationsTransferV_1MsgTypes,
67
+ ...IbcCoreChannelV_1MsgTypes,
68
+ ...IbcCoreClientV_1MsgTypes,
69
+ ...IbcCoreConnectionV_1MsgTypes,
70
+ ...CosmosNftV_1Beta_1MsgTypes,
71
71
  ]);
72
72
  export { Client, registry, MissingWalletError };
@@ -1,5 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Coin } from "../../cosmos/base/v1beta1/coin";
3
+ import { Parameter } from "./parameter";
3
4
  export declare const protobufPackage = "cardchain.cardchain";
4
5
  export declare enum CardStatus {
5
6
  none = 0,
@@ -62,6 +63,7 @@ export interface Card {
62
63
  balanceAnchor: boolean;
63
64
  starterCard: boolean;
64
65
  rarity: CardRarity;
66
+ parameters: Parameter[];
65
67
  }
66
68
  export interface TimeStamp {
67
69
  timeStamp: number;
@@ -6,6 +6,7 @@
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import { Coin } from "../../cosmos/base/v1beta1/coin";
9
+ import { Parameter } from "./parameter";
9
10
  export const protobufPackage = "cardchain.cardchain";
10
11
  export var CardStatus;
11
12
  (function (CardStatus) {
@@ -240,6 +241,7 @@ function createBaseCard() {
240
241
  balanceAnchor: false,
241
242
  starterCard: false,
242
243
  rarity: 0,
244
+ parameters: [],
243
245
  };
244
246
  }
245
247
  export const Card = {
@@ -295,6 +297,9 @@ export const Card = {
295
297
  if (message.rarity !== 0) {
296
298
  writer.uint32(136).int32(message.rarity);
297
299
  }
300
+ for (const v of message.parameters) {
301
+ Parameter.encode(v, writer.uint32(146).fork()).join();
302
+ }
298
303
  return writer;
299
304
  },
300
305
  decode(input, length) {
@@ -423,6 +428,13 @@ export const Card = {
423
428
  message.rarity = reader.int32();
424
429
  continue;
425
430
  }
431
+ case 18: {
432
+ if (tag !== 146) {
433
+ break;
434
+ }
435
+ message.parameters.push(Parameter.decode(reader, reader.uint32()));
436
+ continue;
437
+ }
426
438
  }
427
439
  if ((tag & 7) === 4 || tag === 0) {
428
440
  break;
@@ -450,6 +462,9 @@ export const Card = {
450
462
  balanceAnchor: isSet(object.balanceAnchor) ? globalThis.Boolean(object.balanceAnchor) : false,
451
463
  starterCard: isSet(object.starterCard) ? globalThis.Boolean(object.starterCard) : false,
452
464
  rarity: isSet(object.rarity) ? cardRarityFromJSON(object.rarity) : 0,
465
+ parameters: globalThis.Array.isArray(object?.parameters)
466
+ ? object.parameters.map((e) => Parameter.fromJSON(e))
467
+ : [],
453
468
  };
454
469
  },
455
470
  toJSON(message) {
@@ -505,6 +520,9 @@ export const Card = {
505
520
  if (message.rarity !== 0) {
506
521
  obj.rarity = cardRarityToJSON(message.rarity);
507
522
  }
523
+ if (message.parameters?.length) {
524
+ obj.parameters = message.parameters.map((e) => Parameter.toJSON(e));
525
+ }
508
526
  return obj;
509
527
  },
510
528
  create(base) {
@@ -531,6 +549,7 @@ export const Card = {
531
549
  message.balanceAnchor = object.balanceAnchor ?? false;
532
550
  message.starterCard = object.starterCard ?? false;
533
551
  message.rarity = object.rarity ?? 0;
552
+ message.parameters = object.parameters?.map((e) => Parameter.fromPartial(e)) || [];
534
553
  return message;
535
554
  },
536
555
  };
@@ -1,9 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Parameter } from "./parameter";
2
3
  export declare const protobufPackage = "cardchain.cardchain";
3
- export interface Parameter {
4
- key: string;
5
- value: string;
6
- }
7
4
  export interface Encounter {
8
5
  id: number;
9
6
  drawlist: number[];
@@ -13,7 +10,6 @@ export interface Encounter {
13
10
  imageId: number;
14
11
  name: string;
15
12
  }
16
- export declare const Parameter: MessageFns<Parameter>;
17
13
  export declare const Encounter: MessageFns<Encounter>;
18
14
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
19
15
  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 {} ? {
@@ -5,75 +5,8 @@
5
5
  // source: cardchain/cardchain/encounter.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ import { Parameter } from "./parameter";
8
9
  export const protobufPackage = "cardchain.cardchain";
9
- function createBaseParameter() {
10
- return { key: "", value: "" };
11
- }
12
- export const Parameter = {
13
- encode(message, writer = new BinaryWriter()) {
14
- if (message.key !== "") {
15
- writer.uint32(10).string(message.key);
16
- }
17
- if (message.value !== "") {
18
- writer.uint32(18).string(message.value);
19
- }
20
- return writer;
21
- },
22
- decode(input, length) {
23
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBaseParameter();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1: {
30
- if (tag !== 10) {
31
- break;
32
- }
33
- message.key = reader.string();
34
- continue;
35
- }
36
- case 2: {
37
- if (tag !== 18) {
38
- break;
39
- }
40
- message.value = reader.string();
41
- continue;
42
- }
43
- }
44
- if ((tag & 7) === 4 || tag === 0) {
45
- break;
46
- }
47
- reader.skip(tag & 7);
48
- }
49
- return message;
50
- },
51
- fromJSON(object) {
52
- return {
53
- key: isSet(object.key) ? globalThis.String(object.key) : "",
54
- value: isSet(object.value) ? globalThis.String(object.value) : "",
55
- };
56
- },
57
- toJSON(message) {
58
- const obj = {};
59
- if (message.key !== "") {
60
- obj.key = message.key;
61
- }
62
- if (message.value !== "") {
63
- obj.value = message.value;
64
- }
65
- return obj;
66
- },
67
- create(base) {
68
- return Parameter.fromPartial(base ?? {});
69
- },
70
- fromPartial(object) {
71
- const message = createBaseParameter();
72
- message.key = object.key ?? "";
73
- message.value = object.value ?? "";
74
- return message;
75
- },
76
- };
77
10
  function createBaseEncounter() {
78
11
  return { id: 0, drawlist: [], proven: false, owner: "", parameters: [], imageId: 0, name: "" };
79
12
  }
@@ -0,0 +1,26 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "cardchain.cardchain";
3
+ export interface Parameter {
4
+ key: string;
5
+ value: string;
6
+ }
7
+ export declare const Parameter: MessageFns<Parameter>;
8
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
9
+ 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 {} ? {
10
+ [K in keyof T]?: DeepPartial<T[K]>;
11
+ } : Partial<T>;
12
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
13
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
14
+ [K in keyof P]: Exact<P[K], I[K]>;
15
+ } & {
16
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
17
+ };
18
+ export interface MessageFns<T> {
19
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
20
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
21
+ fromJSON(object: any): T;
22
+ toJSON(message: T): unknown;
23
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
24
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
25
+ }
26
+ export {};
@@ -0,0 +1,79 @@
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: cardchain/cardchain/parameter.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "cardchain.cardchain";
9
+ function createBaseParameter() {
10
+ return { key: "", value: "" };
11
+ }
12
+ export const Parameter = {
13
+ encode(message, writer = new BinaryWriter()) {
14
+ if (message.key !== "") {
15
+ writer.uint32(10).string(message.key);
16
+ }
17
+ if (message.value !== "") {
18
+ writer.uint32(18).string(message.value);
19
+ }
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBaseParameter();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ case 1: {
30
+ if (tag !== 10) {
31
+ break;
32
+ }
33
+ message.key = reader.string();
34
+ continue;
35
+ }
36
+ case 2: {
37
+ if (tag !== 18) {
38
+ break;
39
+ }
40
+ message.value = reader.string();
41
+ continue;
42
+ }
43
+ }
44
+ if ((tag & 7) === 4 || tag === 0) {
45
+ break;
46
+ }
47
+ reader.skip(tag & 7);
48
+ }
49
+ return message;
50
+ },
51
+ fromJSON(object) {
52
+ return {
53
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
54
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
55
+ };
56
+ },
57
+ toJSON(message) {
58
+ const obj = {};
59
+ if (message.key !== "") {
60
+ obj.key = message.key;
61
+ }
62
+ if (message.value !== "") {
63
+ obj.value = message.value;
64
+ }
65
+ return obj;
66
+ },
67
+ create(base) {
68
+ return Parameter.fromPartial(base ?? {});
69
+ },
70
+ fromPartial(object) {
71
+ const message = createBaseParameter();
72
+ message.key = object.key ?? "";
73
+ message.value = object.value ?? "";
74
+ return message;
75
+ },
76
+ };
77
+ function isSet(value) {
78
+ return value !== null && value !== undefined;
79
+ }
@@ -89,6 +89,7 @@ export interface QueryEncounterResponse {
89
89
  encounter: Encounter | undefined;
90
90
  }
91
91
  export interface QueryEncountersRequest {
92
+ owner: string;
92
93
  }
93
94
  export interface QueryEncountersResponse {
94
95
  encounters: Encounter[];
@@ -100,6 +101,7 @@ export interface QueryEncounterWithImageResponse {
100
101
  encounter: EncounterWithImage | undefined;
101
102
  }
102
103
  export interface QueryEncountersWithImageRequest {
104
+ owner: string;
103
105
  }
104
106
  export interface QueryEncountersWithImageResponse {
105
107
  encounters: EncounterWithImage[];
@@ -1271,10 +1271,13 @@ export const QueryEncounterResponse = {
1271
1271
  },
1272
1272
  };
1273
1273
  function createBaseQueryEncountersRequest() {
1274
- return {};
1274
+ return { owner: "" };
1275
1275
  }
1276
1276
  export const QueryEncountersRequest = {
1277
- encode(_, writer = new BinaryWriter()) {
1277
+ encode(message, writer = new BinaryWriter()) {
1278
+ if (message.owner !== "") {
1279
+ writer.uint32(10).string(message.owner);
1280
+ }
1278
1281
  return writer;
1279
1282
  },
1280
1283
  decode(input, length) {
@@ -1284,6 +1287,13 @@ export const QueryEncountersRequest = {
1284
1287
  while (reader.pos < end) {
1285
1288
  const tag = reader.uint32();
1286
1289
  switch (tag >>> 3) {
1290
+ case 1: {
1291
+ if (tag !== 10) {
1292
+ break;
1293
+ }
1294
+ message.owner = reader.string();
1295
+ continue;
1296
+ }
1287
1297
  }
1288
1298
  if ((tag & 7) === 4 || tag === 0) {
1289
1299
  break;
@@ -1292,18 +1302,22 @@ export const QueryEncountersRequest = {
1292
1302
  }
1293
1303
  return message;
1294
1304
  },
1295
- fromJSON(_) {
1296
- return {};
1305
+ fromJSON(object) {
1306
+ return { owner: isSet(object.owner) ? globalThis.String(object.owner) : "" };
1297
1307
  },
1298
- toJSON(_) {
1308
+ toJSON(message) {
1299
1309
  const obj = {};
1310
+ if (message.owner !== "") {
1311
+ obj.owner = message.owner;
1312
+ }
1300
1313
  return obj;
1301
1314
  },
1302
1315
  create(base) {
1303
1316
  return QueryEncountersRequest.fromPartial(base ?? {});
1304
1317
  },
1305
- fromPartial(_) {
1318
+ fromPartial(object) {
1306
1319
  const message = createBaseQueryEncountersRequest();
1320
+ message.owner = object.owner ?? "";
1307
1321
  return message;
1308
1322
  },
1309
1323
  };
@@ -1467,10 +1481,13 @@ export const QueryEncounterWithImageResponse = {
1467
1481
  },
1468
1482
  };
1469
1483
  function createBaseQueryEncountersWithImageRequest() {
1470
- return {};
1484
+ return { owner: "" };
1471
1485
  }
1472
1486
  export const QueryEncountersWithImageRequest = {
1473
- encode(_, writer = new BinaryWriter()) {
1487
+ encode(message, writer = new BinaryWriter()) {
1488
+ if (message.owner !== "") {
1489
+ writer.uint32(10).string(message.owner);
1490
+ }
1474
1491
  return writer;
1475
1492
  },
1476
1493
  decode(input, length) {
@@ -1480,6 +1497,13 @@ export const QueryEncountersWithImageRequest = {
1480
1497
  while (reader.pos < end) {
1481
1498
  const tag = reader.uint32();
1482
1499
  switch (tag >>> 3) {
1500
+ case 1: {
1501
+ if (tag !== 10) {
1502
+ break;
1503
+ }
1504
+ message.owner = reader.string();
1505
+ continue;
1506
+ }
1483
1507
  }
1484
1508
  if ((tag & 7) === 4 || tag === 0) {
1485
1509
  break;
@@ -1488,18 +1512,22 @@ export const QueryEncountersWithImageRequest = {
1488
1512
  }
1489
1513
  return message;
1490
1514
  },
1491
- fromJSON(_) {
1492
- return {};
1515
+ fromJSON(object) {
1516
+ return { owner: isSet(object.owner) ? globalThis.String(object.owner) : "" };
1493
1517
  },
1494
- toJSON(_) {
1518
+ toJSON(message) {
1495
1519
  const obj = {};
1520
+ if (message.owner !== "") {
1521
+ obj.owner = message.owner;
1522
+ }
1496
1523
  return obj;
1497
1524
  },
1498
1525
  create(base) {
1499
1526
  return QueryEncountersWithImageRequest.fromPartial(base ?? {});
1500
1527
  },
1501
- fromPartial(_) {
1528
+ fromPartial(object) {
1502
1529
  const message = createBaseQueryEncountersWithImageRequest();
1530
+ message.owner = object.owner ?? "";
1503
1531
  return message;
1504
1532
  },
1505
1533
  };
@@ -2,8 +2,8 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Coin } from "../../cosmos/base/v1beta1/coin";
3
3
  import { CardRarity } from "./card";
4
4
  import { Response } from "./council";
5
- import { Parameter } from "./encounter";
6
5
  import { Outcome } from "./match";
6
+ import { Parameter } from "./parameter";
7
7
  import { Params } from "./params";
8
8
  import { SingleVote } from "./voting";
9
9
  export declare const protobufPackage = "cardchain.cardchain";
@@ -44,6 +44,7 @@ export interface MsgCardSaveContent {
44
44
  notes: string;
45
45
  artist: string;
46
46
  balanceAnchor: boolean;
47
+ parameters: Parameter[];
47
48
  }
48
49
  export interface MsgCardSaveContentResponse {
49
50
  airdropClaimed: boolean;
@@ -333,6 +334,18 @@ export interface MsgEncounterCreate {
333
334
  }
334
335
  export interface MsgEncounterCreateResponse {
335
336
  }
337
+ /** MsgEncounterEdit defines the MsgEncounterEdit message. */
338
+ export interface MsgEncounterEdit {
339
+ creator: string;
340
+ id: number;
341
+ name: string;
342
+ drawlist: number[];
343
+ parameters: Parameter[];
344
+ image: Uint8Array;
345
+ }
346
+ /** MsgEncounterEditResponse defines the MsgEncounterEditResponse message. */
347
+ export interface MsgEncounterEditResponse {
348
+ }
336
349
  export interface MsgEncounterDo {
337
350
  creator: string;
338
351
  encounterId: number;
@@ -378,6 +391,14 @@ export interface MsgCardCopyrightClaim {
378
391
  }
379
392
  export interface MsgCardCopyrightClaimResponse {
380
393
  }
394
+ /** MsgEncounterDelete defines the MsgEncounterDelete message. */
395
+ export interface MsgEncounterDelete {
396
+ creator: string;
397
+ id: number;
398
+ }
399
+ /** MsgEncounterDeleteResponse defines the MsgEncounterDeleteResponse message. */
400
+ export interface MsgEncounterDeleteResponse {
401
+ }
381
402
  export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
382
403
  export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
383
404
  export declare const MsgUserCreate: MessageFns<MsgUserCreate>;
@@ -468,6 +489,8 @@ export declare const MsgZealyConnect: MessageFns<MsgZealyConnect>;
468
489
  export declare const MsgZealyConnectResponse: MessageFns<MsgZealyConnectResponse>;
469
490
  export declare const MsgEncounterCreate: MessageFns<MsgEncounterCreate>;
470
491
  export declare const MsgEncounterCreateResponse: MessageFns<MsgEncounterCreateResponse>;
492
+ export declare const MsgEncounterEdit: MessageFns<MsgEncounterEdit>;
493
+ export declare const MsgEncounterEditResponse: MessageFns<MsgEncounterEditResponse>;
471
494
  export declare const MsgEncounterDo: MessageFns<MsgEncounterDo>;
472
495
  export declare const MsgEncounterDoResponse: MessageFns<MsgEncounterDoResponse>;
473
496
  export declare const MsgEncounterClose: MessageFns<MsgEncounterClose>;
@@ -482,6 +505,8 @@ export declare const MsgSetActivate: MessageFns<MsgSetActivate>;
482
505
  export declare const MsgSetActivateResponse: MessageFns<MsgSetActivateResponse>;
483
506
  export declare const MsgCardCopyrightClaim: MessageFns<MsgCardCopyrightClaim>;
484
507
  export declare const MsgCardCopyrightClaimResponse: MessageFns<MsgCardCopyrightClaimResponse>;
508
+ export declare const MsgEncounterDelete: MessageFns<MsgEncounterDelete>;
509
+ export declare const MsgEncounterDeleteResponse: MessageFns<MsgEncounterDeleteResponse>;
485
510
  /** Msg defines the Msg service. */
486
511
  export interface Msg {
487
512
  /**
@@ -533,8 +558,10 @@ export interface Msg {
533
558
  EarlyAccessInvite(request: MsgEarlyAccessInvite): Promise<MsgEarlyAccessInviteResponse>;
534
559
  ZealyConnect(request: MsgZealyConnect): Promise<MsgZealyConnectResponse>;
535
560
  EncounterCreate(request: MsgEncounterCreate): Promise<MsgEncounterCreateResponse>;
561
+ EncounterEdit(request: MsgEncounterEdit): Promise<MsgEncounterEditResponse>;
536
562
  EncounterDo(request: MsgEncounterDo): Promise<MsgEncounterDoResponse>;
537
563
  EncounterClose(request: MsgEncounterClose): Promise<MsgEncounterCloseResponse>;
564
+ EncounterDelete(request: MsgEncounterDelete): Promise<MsgEncounterDeleteResponse>;
538
565
  EarlyAccessDisinvite(request: MsgEarlyAccessDisinvite): Promise<MsgEarlyAccessDisinviteResponse>;
539
566
  CardBan(request: MsgCardBan): Promise<MsgCardBanResponse>;
540
567
  EarlyAccessGrant(request: MsgEarlyAccessGrant): Promise<MsgEarlyAccessGrantResponse>;
@@ -593,8 +620,10 @@ export declare class MsgClientImpl implements Msg {
593
620
  EarlyAccessInvite(request: MsgEarlyAccessInvite): Promise<MsgEarlyAccessInviteResponse>;
594
621
  ZealyConnect(request: MsgZealyConnect): Promise<MsgZealyConnectResponse>;
595
622
  EncounterCreate(request: MsgEncounterCreate): Promise<MsgEncounterCreateResponse>;
623
+ EncounterEdit(request: MsgEncounterEdit): Promise<MsgEncounterEditResponse>;
596
624
  EncounterDo(request: MsgEncounterDo): Promise<MsgEncounterDoResponse>;
597
625
  EncounterClose(request: MsgEncounterClose): Promise<MsgEncounterCloseResponse>;
626
+ EncounterDelete(request: MsgEncounterDelete): Promise<MsgEncounterDeleteResponse>;
598
627
  EarlyAccessDisinvite(request: MsgEarlyAccessDisinvite): Promise<MsgEarlyAccessDisinviteResponse>;
599
628
  CardBan(request: MsgCardBan): Promise<MsgCardBanResponse>;
600
629
  EarlyAccessGrant(request: MsgEarlyAccessGrant): Promise<MsgEarlyAccessGrantResponse>;