decentralcardgame-cardchain-client-ts 0.0.3 → 0.0.4
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/DecentralCardGame.cardchain.cardchain/module.js +1044 -0
- package/DecentralCardGame.cardchain.cardchain/registry.js +72 -70
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +30 -6
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +11 -17
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +1 -217
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +166 -8
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +7 -65
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/params.js +30 -10
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/tx.js +4137 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +22 -21
- package/client.js +2 -1
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.distribution.v1beta1/module.js +24 -24
- package/cosmos.distribution.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1/module.js +31 -31
- package/cosmos.gov.v1/registry.js +4 -4
- package/cosmos.gov.v1beta1/module.js +22 -22
- package/cosmos.gov.v1beta1/registry.js +2 -2
- package/cosmos.group.v1/module.js +102 -102
- package/cosmos.group.v1/registry.js +14 -14
- package/cosmos.group.v1/rest.js +15 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.js +110 -0
- package/cosmos.staking.v1beta1/module.js +40 -40
- package/cosmos.staking.v1beta1/registry.js +8 -8
- package/cosmos.vesting.v1beta1/module.js +16 -16
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/ibc.applications.interchain_accounts.controller.v1/rest.js +9 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +266 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +24 -6
- package/ibc.core.client.v1/rest.js +14 -14
- package/ibc.core.connection.v1/rest.js +14 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +83 -1
- package/package.json +2 -2
- package/tsconfig.json +0 -1
|
@@ -4,7 +4,7 @@ import _m0 from "protobufjs/minimal";
|
|
|
4
4
|
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
import { Any } from "../../../../google/protobuf/any";
|
|
6
6
|
import { Height, IdentifiedClientState } from "../../client/v1/client";
|
|
7
|
-
import { ConnectionEnd, IdentifiedConnection } from "./connection";
|
|
7
|
+
import { ConnectionEnd, IdentifiedConnection, Params } from "./connection";
|
|
8
8
|
export const protobufPackage = "ibc.core.connection.v1";
|
|
9
9
|
function createBaseQueryConnectionRequest() {
|
|
10
10
|
return { connectionId: "" };
|
|
@@ -594,6 +594,82 @@ export const QueryConnectionConsensusStateResponse = {
|
|
|
594
594
|
return message;
|
|
595
595
|
},
|
|
596
596
|
};
|
|
597
|
+
function createBaseQueryConnectionParamsRequest() {
|
|
598
|
+
return {};
|
|
599
|
+
}
|
|
600
|
+
export const QueryConnectionParamsRequest = {
|
|
601
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
602
|
+
return writer;
|
|
603
|
+
},
|
|
604
|
+
decode(input, length) {
|
|
605
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
606
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
607
|
+
const message = createBaseQueryConnectionParamsRequest();
|
|
608
|
+
while (reader.pos < end) {
|
|
609
|
+
const tag = reader.uint32();
|
|
610
|
+
switch (tag >>> 3) {
|
|
611
|
+
default:
|
|
612
|
+
reader.skipType(tag & 7);
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
return message;
|
|
617
|
+
},
|
|
618
|
+
fromJSON(_) {
|
|
619
|
+
return {};
|
|
620
|
+
},
|
|
621
|
+
toJSON(_) {
|
|
622
|
+
const obj = {};
|
|
623
|
+
return obj;
|
|
624
|
+
},
|
|
625
|
+
fromPartial(_) {
|
|
626
|
+
const message = createBaseQueryConnectionParamsRequest();
|
|
627
|
+
return message;
|
|
628
|
+
},
|
|
629
|
+
};
|
|
630
|
+
function createBaseQueryConnectionParamsResponse() {
|
|
631
|
+
return { params: undefined };
|
|
632
|
+
}
|
|
633
|
+
export const QueryConnectionParamsResponse = {
|
|
634
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
635
|
+
if (message.params !== undefined) {
|
|
636
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
637
|
+
}
|
|
638
|
+
return writer;
|
|
639
|
+
},
|
|
640
|
+
decode(input, length) {
|
|
641
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
642
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
643
|
+
const message = createBaseQueryConnectionParamsResponse();
|
|
644
|
+
while (reader.pos < end) {
|
|
645
|
+
const tag = reader.uint32();
|
|
646
|
+
switch (tag >>> 3) {
|
|
647
|
+
case 1:
|
|
648
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
649
|
+
break;
|
|
650
|
+
default:
|
|
651
|
+
reader.skipType(tag & 7);
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return message;
|
|
656
|
+
},
|
|
657
|
+
fromJSON(object) {
|
|
658
|
+
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
659
|
+
},
|
|
660
|
+
toJSON(message) {
|
|
661
|
+
const obj = {};
|
|
662
|
+
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
663
|
+
return obj;
|
|
664
|
+
},
|
|
665
|
+
fromPartial(object) {
|
|
666
|
+
const message = createBaseQueryConnectionParamsResponse();
|
|
667
|
+
message.params = (object.params !== undefined && object.params !== null)
|
|
668
|
+
? Params.fromPartial(object.params)
|
|
669
|
+
: undefined;
|
|
670
|
+
return message;
|
|
671
|
+
},
|
|
672
|
+
};
|
|
597
673
|
export class QueryClientImpl {
|
|
598
674
|
constructor(rpc) {
|
|
599
675
|
this.rpc = rpc;
|
|
@@ -602,6 +678,7 @@ export class QueryClientImpl {
|
|
|
602
678
|
this.ClientConnections = this.ClientConnections.bind(this);
|
|
603
679
|
this.ConnectionClientState = this.ConnectionClientState.bind(this);
|
|
604
680
|
this.ConnectionConsensusState = this.ConnectionConsensusState.bind(this);
|
|
681
|
+
this.ConnectionParams = this.ConnectionParams.bind(this);
|
|
605
682
|
}
|
|
606
683
|
Connection(request) {
|
|
607
684
|
const data = QueryConnectionRequest.encode(request).finish();
|
|
@@ -628,6 +705,11 @@ export class QueryClientImpl {
|
|
|
628
705
|
const promise = this.rpc.request("ibc.core.connection.v1.Query", "ConnectionConsensusState", data);
|
|
629
706
|
return promise.then((data) => QueryConnectionConsensusStateResponse.decode(new _m0.Reader(data)));
|
|
630
707
|
}
|
|
708
|
+
ConnectionParams(request) {
|
|
709
|
+
const data = QueryConnectionParamsRequest.encode(request).finish();
|
|
710
|
+
const promise = this.rpc.request("ibc.core.connection.v1.Query", "ConnectionParams", data);
|
|
711
|
+
return promise.then((data) => QueryConnectionParamsResponse.decode(new _m0.Reader(data)));
|
|
712
|
+
}
|
|
631
713
|
}
|
|
632
714
|
var globalThis = (() => {
|
|
633
715
|
if (typeof globalThis !== "undefined") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decentralcardgame-cardchain-client-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Autogenerated Typescript Client for crowdcontrol cardchain",
|
|
5
5
|
"author": "Lxgr <lxgr@protonmail.com>",
|
|
6
6
|
"license": "GPL-v3",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cosmjs/launchpad": "0.27.0",
|
|
13
13
|
"@cosmjs/proto-signing": "0.27.0",
|
|
14
|
-
"@cosmjs/stargate": "0.
|
|
14
|
+
"@cosmjs/stargate": "0.27.0",
|
|
15
15
|
"@keplr-wallet/types": "^0.11.3",
|
|
16
16
|
"axios": "0.21.4",
|
|
17
17
|
"buffer": "^6.0.3",
|