decentralcardgame-cardchain-client-ts 0.0.26-rc1 → 0.0.26
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 +364 -338
- package/DecentralCardGame.cardchain.cardchain/module.ts +530 -495
- package/DecentralCardGame.cardchain.cardchain/registry.js +66 -64
- package/DecentralCardGame.cardchain.cardchain/registry.ts +66 -64
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -17
- package/DecentralCardGame.cardchain.cardchain/rest.ts +138 -94
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +287 -106
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.ts +326 -107
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +38 -14
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.ts +45 -17
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +104 -47
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.ts +122 -50
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +92 -74
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.ts +109 -66
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +25 -17
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.ts +29 -20
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +107 -51
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.ts +130 -50
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +29 -10
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.ts +32 -10
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +17 -8
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.ts +21 -11
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +178 -57
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.ts +205 -60
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +666 -446
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.ts +764 -459
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +17 -14
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.ts +24 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +45 -16
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.ts +53 -19
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +31 -12
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.ts +37 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.js +138 -62
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.ts +173 -67
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.js +31 -12
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.ts +37 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +1609 -1024
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.ts +1821 -1153
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +207 -98
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.ts +261 -96
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.js +178 -108
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.ts +200 -123
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +1 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +86 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +90 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +219 -114
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +265 -120
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +186 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +210 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +91 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +113 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +3 -1
- package/DecentralCardGame.cardchain.cardchain/types.ts +4 -0
- package/DecentralCardGame.cardchain.featureflag/rest.ts +6 -6
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.js +86 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.ts +114 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.js +164 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.ts +205 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.js +40 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.ts +62 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.js +100 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.ts +130 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.js +325 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.ts +424 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.js +9 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.ts +21 -0
- package/client.js +3 -9
- package/client.ts +154 -167
- package/cosmos.auth.v1beta1/rest.ts +21 -21
- package/cosmos.authz.v1beta1/module.js +17 -17
- package/cosmos.authz.v1beta1/module.ts +25 -25
- package/cosmos.authz.v1beta1/registry.js +4 -4
- package/cosmos.authz.v1beta1/registry.ts +4 -4
- package/cosmos.authz.v1beta1/rest.ts +75 -75
- package/cosmos.bank.v1beta1/rest.ts +9 -9
- package/cosmos.distribution.v1beta1/module.js +27 -27
- package/cosmos.distribution.v1beta1/module.ts +42 -42
- package/cosmos.distribution.v1beta1/registry.js +4 -4
- package/cosmos.distribution.v1beta1/registry.ts +4 -4
- package/cosmos.distribution.v1beta1/rest.ts +20 -20
- package/cosmos.gov.v1/module.js +24 -24
- package/cosmos.gov.v1/module.ts +36 -36
- package/cosmos.gov.v1/registry.js +4 -4
- package/cosmos.gov.v1/registry.ts +4 -4
- package/cosmos.gov.v1/rest.ts +90 -90
- package/cosmos.gov.v1beta1/module.js +27 -27
- package/cosmos.gov.v1beta1/module.ts +42 -42
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +152 -152
- package/cosmos.group.v1/module.js +108 -108
- package/cosmos.group.v1/module.ts +164 -164
- package/cosmos.group.v1/registry.js +18 -18
- package/cosmos.group.v1/registry.ts +18 -18
- package/cosmos.group.v1/rest.js +5 -5
- package/cosmos.group.v1/rest.ts +214 -214
- package/cosmos.mint.v1beta1/rest.ts +13 -13
- package/cosmos.nft.v1beta1/rest.ts +132 -132
- package/cosmos.slashing.v1beta1/rest.ts +19 -19
- package/cosmos.staking.v1beta1/module.js +39 -39
- package/cosmos.staking.v1beta1/module.ts +59 -59
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.ts +95 -95
- package/cosmos.upgrade.v1beta1/module.js +16 -16
- package/cosmos.upgrade.v1beta1/module.ts +24 -24
- package/cosmos.upgrade.v1beta1/registry.js +2 -2
- package/cosmos.upgrade.v1beta1/registry.ts +2 -2
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +10 -10
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +13 -13
- package/ibc.applications.transfer.v1/rest.ts +3 -3
- package/ibc.core.channel.v1/rest.ts +44 -44
- package/package.json +1 -1
|
@@ -7,21 +7,15 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
11
10
|
import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
11
|
+
import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
12
12
|
|
|
13
13
|
import { Plan as typePlan} from "./types"
|
|
14
14
|
import { SoftwareUpgradeProposal as typeSoftwareUpgradeProposal} from "./types"
|
|
15
15
|
import { CancelSoftwareUpgradeProposal as typeCancelSoftwareUpgradeProposal} from "./types"
|
|
16
16
|
import { ModuleVersion as typeModuleVersion} from "./types"
|
|
17
17
|
|
|
18
|
-
export {
|
|
19
|
-
|
|
20
|
-
type sendMsgSoftwareUpgradeParams = {
|
|
21
|
-
value: MsgSoftwareUpgrade,
|
|
22
|
-
fee?: StdFee,
|
|
23
|
-
memo?: string
|
|
24
|
-
};
|
|
18
|
+
export { MsgCancelUpgrade, MsgSoftwareUpgrade };
|
|
25
19
|
|
|
26
20
|
type sendMsgCancelUpgradeParams = {
|
|
27
21
|
value: MsgCancelUpgrade,
|
|
@@ -29,15 +23,21 @@ type sendMsgCancelUpgradeParams = {
|
|
|
29
23
|
memo?: string
|
|
30
24
|
};
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
type msgSoftwareUpgradeParams = {
|
|
26
|
+
type sendMsgSoftwareUpgradeParams = {
|
|
34
27
|
value: MsgSoftwareUpgrade,
|
|
28
|
+
fee?: StdFee,
|
|
29
|
+
memo?: string
|
|
35
30
|
};
|
|
36
31
|
|
|
32
|
+
|
|
37
33
|
type msgCancelUpgradeParams = {
|
|
38
34
|
value: MsgCancelUpgrade,
|
|
39
35
|
};
|
|
40
36
|
|
|
37
|
+
type msgSoftwareUpgradeParams = {
|
|
38
|
+
value: MsgSoftwareUpgrade,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
41
|
|
|
42
42
|
export const registry = new Registry(msgTypes);
|
|
43
43
|
|
|
@@ -68,48 +68,48 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
68
68
|
|
|
69
69
|
return {
|
|
70
70
|
|
|
71
|
-
async
|
|
71
|
+
async sendMsgCancelUpgrade({ value, fee, memo }: sendMsgCancelUpgradeParams): Promise<DeliverTxResponse> {
|
|
72
72
|
if (!signer) {
|
|
73
|
-
throw new Error('TxClient:
|
|
73
|
+
throw new Error('TxClient:sendMsgCancelUpgrade: Unable to sign Tx. Signer is not present.')
|
|
74
74
|
}
|
|
75
75
|
try {
|
|
76
76
|
const { address } = (await signer.getAccounts())[0];
|
|
77
77
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
78
|
-
let msg = this.
|
|
78
|
+
let msg = this.msgCancelUpgrade({ value: MsgCancelUpgrade.fromPartial(value) })
|
|
79
79
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
80
80
|
} catch (e: any) {
|
|
81
|
-
throw new Error('TxClient:
|
|
81
|
+
throw new Error('TxClient:sendMsgCancelUpgrade: Could not broadcast Tx: '+ e.message)
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
|
|
85
|
-
async
|
|
85
|
+
async sendMsgSoftwareUpgrade({ value, fee, memo }: sendMsgSoftwareUpgradeParams): Promise<DeliverTxResponse> {
|
|
86
86
|
if (!signer) {
|
|
87
|
-
throw new Error('TxClient:
|
|
87
|
+
throw new Error('TxClient:sendMsgSoftwareUpgrade: Unable to sign Tx. Signer is not present.')
|
|
88
88
|
}
|
|
89
89
|
try {
|
|
90
90
|
const { address } = (await signer.getAccounts())[0];
|
|
91
91
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
92
|
-
let msg = this.
|
|
92
|
+
let msg = this.msgSoftwareUpgrade({ value: MsgSoftwareUpgrade.fromPartial(value) })
|
|
93
93
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
94
94
|
} catch (e: any) {
|
|
95
|
-
throw new Error('TxClient:
|
|
95
|
+
throw new Error('TxClient:sendMsgSoftwareUpgrade: Could not broadcast Tx: '+ e.message)
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
msgCancelUpgrade({ value }: msgCancelUpgradeParams): EncodeObject {
|
|
101
101
|
try {
|
|
102
|
-
return { typeUrl: "/cosmos.upgrade.v1beta1.
|
|
102
|
+
return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial( value ) }
|
|
103
103
|
} catch (e: any) {
|
|
104
|
-
throw new Error('TxClient:
|
|
104
|
+
throw new Error('TxClient:MsgCancelUpgrade: Could not create message: ' + e.message)
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
msgSoftwareUpgrade({ value }: msgSoftwareUpgradeParams): EncodeObject {
|
|
109
109
|
try {
|
|
110
|
-
return { typeUrl: "/cosmos.upgrade.v1beta1.
|
|
110
|
+
return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", value: MsgSoftwareUpgrade.fromPartial( value ) }
|
|
111
111
|
} catch (e: any) {
|
|
112
|
-
throw new Error('TxClient:
|
|
112
|
+
throw new Error('TxClient:MsgSoftwareUpgrade: Could not create message: ' + e.message)
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
2
1
|
import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
2
|
+
import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
3
3
|
const msgTypes = [
|
|
4
|
-
["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade],
|
|
5
4
|
["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade],
|
|
5
|
+
["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade],
|
|
6
6
|
];
|
|
7
7
|
export { msgTypes };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
3
2
|
import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
3
|
+
import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx";
|
|
4
4
|
|
|
5
5
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
6
|
-
["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade],
|
|
7
6
|
["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade],
|
|
7
|
+
["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade],
|
|
8
8
|
|
|
9
9
|
];
|
|
10
10
|
|
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Params defines the set of on-chain interchain accounts parameters.
|
|
14
|
+
The following parameters may be used to disable the controller submodule.
|
|
15
|
+
*/
|
|
16
|
+
export interface Controllerv1Params {
|
|
17
|
+
/** controller_enabled enables or disables the controller submodule. */
|
|
18
|
+
controller_enabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
12
21
|
/**
|
|
13
22
|
* - TYPE_UNSPECIFIED: Default zero value enumeration
|
|
14
23
|
- TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain
|
|
@@ -163,15 +172,6 @@ export interface V1MsgSendTxResponse {
|
|
|
163
172
|
sequence?: string;
|
|
164
173
|
}
|
|
165
174
|
|
|
166
|
-
/**
|
|
167
|
-
* Params defines the set of on-chain interchain accounts parameters.
|
|
168
|
-
The following parameters may be used to disable the controller submodule.
|
|
169
|
-
*/
|
|
170
|
-
export interface V1Params {
|
|
171
|
-
/** controller_enabled enables or disables the controller submodule. */
|
|
172
|
-
controller_enabled?: boolean;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
175
|
/**
|
|
176
176
|
* QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method.
|
|
177
177
|
*/
|
|
@@ -184,7 +184,7 @@ export interface V1QueryInterchainAccountResponse {
|
|
|
184
184
|
*/
|
|
185
185
|
export interface V1QueryParamsResponse {
|
|
186
186
|
/** params defines the parameters of the module. */
|
|
187
|
-
params?:
|
|
187
|
+
params?: Controllerv1Params;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
@@ -9,22 +9,11 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
export interface ProtobufAny {
|
|
13
|
-
"@type"?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface RpcStatus {
|
|
17
|
-
/** @format int32 */
|
|
18
|
-
code?: number;
|
|
19
|
-
message?: string;
|
|
20
|
-
details?: ProtobufAny[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* Params defines the set of on-chain interchain accounts parameters.
|
|
25
14
|
The following parameters may be used to disable the host submodule.
|
|
26
15
|
*/
|
|
27
|
-
export interface
|
|
16
|
+
export interface Hostv1Params {
|
|
28
17
|
/** host_enabled enables or disables the host submodule. */
|
|
29
18
|
host_enabled?: boolean;
|
|
30
19
|
|
|
@@ -32,12 +21,23 @@ export interface V1Params {
|
|
|
32
21
|
allow_messages?: string[];
|
|
33
22
|
}
|
|
34
23
|
|
|
24
|
+
export interface ProtobufAny {
|
|
25
|
+
"@type"?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface RpcStatus {
|
|
29
|
+
/** @format int32 */
|
|
30
|
+
code?: number;
|
|
31
|
+
message?: string;
|
|
32
|
+
details?: ProtobufAny[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
35
|
/**
|
|
36
36
|
* QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
37
37
|
*/
|
|
38
38
|
export interface V1QueryParamsResponse {
|
|
39
39
|
/** params defines the parameters of the module. */
|
|
40
|
-
params?:
|
|
40
|
+
params?: Hostv1Params;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
@@ -154,7 +154,7 @@ export interface RpcStatus {
|
|
|
154
154
|
* DenomTrace contains the base denomination for ICS20 fungible tokens and the
|
|
155
155
|
source tracing information path.
|
|
156
156
|
*/
|
|
157
|
-
export interface
|
|
157
|
+
export interface Transferv1DenomTrace {
|
|
158
158
|
/**
|
|
159
159
|
* path defines the chain of port/channel identifiers used for tracing the
|
|
160
160
|
* source of the fungible token.
|
|
@@ -213,7 +213,7 @@ method.
|
|
|
213
213
|
*/
|
|
214
214
|
export interface V1QueryDenomTraceResponse {
|
|
215
215
|
/** denom_trace returns the requested denomination trace information. */
|
|
216
|
-
denom_trace?:
|
|
216
|
+
denom_trace?: Transferv1DenomTrace;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
/**
|
|
@@ -222,7 +222,7 @@ method.
|
|
|
222
222
|
*/
|
|
223
223
|
export interface V1QueryDenomTracesResponse {
|
|
224
224
|
/** denom_traces returns all denominations trace information. */
|
|
225
|
-
denom_traces?:
|
|
225
|
+
denom_traces?: Transferv1DenomTrace[];
|
|
226
226
|
|
|
227
227
|
/** pagination defines the pagination in the response. */
|
|
228
228
|
pagination?: V1Beta1PageResponse;
|
|
@@ -9,6 +9,49 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
|
14
|
+
modules on separate blockchains, which has at least one end capable of
|
|
15
|
+
sending packets and one end capable of receiving packets.
|
|
16
|
+
*/
|
|
17
|
+
export interface Channelv1Channel {
|
|
18
|
+
/**
|
|
19
|
+
* current state of the channel end
|
|
20
|
+
* State defines if a channel is in one of the following states:
|
|
21
|
+
* CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
22
|
+
*
|
|
23
|
+
* - STATE_UNINITIALIZED_UNSPECIFIED: Default State
|
|
24
|
+
* - STATE_INIT: A channel has just started the opening handshake.
|
|
25
|
+
* - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
|
|
26
|
+
* - STATE_OPEN: A channel has completed the handshake. Open channels are
|
|
27
|
+
* ready to send and receive packets.
|
|
28
|
+
* - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
|
|
29
|
+
* packets.
|
|
30
|
+
*/
|
|
31
|
+
state?: V1State;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* whether the channel is ordered or unordered
|
|
35
|
+
* - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
|
|
36
|
+
* - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
|
|
37
|
+
* which they were sent.
|
|
38
|
+
* - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
|
|
39
|
+
*/
|
|
40
|
+
ordering?: V1Order;
|
|
41
|
+
|
|
42
|
+
/** counterparty channel end */
|
|
43
|
+
counterparty?: V1Counterparty;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* list of connection identifiers, in order, along which packets sent on
|
|
47
|
+
* this channel will travel
|
|
48
|
+
*/
|
|
49
|
+
connection_hops?: string[];
|
|
50
|
+
|
|
51
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
|
52
|
+
version?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
12
55
|
/**
|
|
13
56
|
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
14
57
|
URL that describes the type of the serialized message.
|
|
@@ -130,49 +173,6 @@ export interface RpcStatus {
|
|
|
130
173
|
details?: ProtobufAny[];
|
|
131
174
|
}
|
|
132
175
|
|
|
133
|
-
/**
|
|
134
|
-
* Channel defines pipeline for exactly-once packet delivery between specific
|
|
135
|
-
modules on separate blockchains, which has at least one end capable of
|
|
136
|
-
sending packets and one end capable of receiving packets.
|
|
137
|
-
*/
|
|
138
|
-
export interface V1Channel {
|
|
139
|
-
/**
|
|
140
|
-
* current state of the channel end
|
|
141
|
-
* State defines if a channel is in one of the following states:
|
|
142
|
-
* CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
143
|
-
*
|
|
144
|
-
* - STATE_UNINITIALIZED_UNSPECIFIED: Default State
|
|
145
|
-
* - STATE_INIT: A channel has just started the opening handshake.
|
|
146
|
-
* - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
|
|
147
|
-
* - STATE_OPEN: A channel has completed the handshake. Open channels are
|
|
148
|
-
* ready to send and receive packets.
|
|
149
|
-
* - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
|
|
150
|
-
* packets.
|
|
151
|
-
*/
|
|
152
|
-
state?: V1State;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* whether the channel is ordered or unordered
|
|
156
|
-
* - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
|
|
157
|
-
* - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
|
|
158
|
-
* which they were sent.
|
|
159
|
-
* - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
|
|
160
|
-
*/
|
|
161
|
-
ordering?: V1Order;
|
|
162
|
-
|
|
163
|
-
/** counterparty channel end */
|
|
164
|
-
counterparty?: V1Counterparty;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* list of connection identifiers, in order, along which packets sent on
|
|
168
|
-
* this channel will travel
|
|
169
|
-
*/
|
|
170
|
-
connection_hops?: string[];
|
|
171
|
-
|
|
172
|
-
/** opaque channel version, which is agreed upon during the handshake */
|
|
173
|
-
version?: string;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
176
|
export interface V1Counterparty {
|
|
177
177
|
/** port on the counterparty chain which owns the other end of the channel. */
|
|
178
178
|
port_id?: string;
|
|
@@ -610,7 +610,7 @@ export interface V1QueryChannelResponse {
|
|
|
610
610
|
* modules on separate blockchains, which has at least one end capable of
|
|
611
611
|
* sending packets and one end capable of receiving packets.
|
|
612
612
|
*/
|
|
613
|
-
channel?:
|
|
613
|
+
channel?: Channelv1Channel;
|
|
614
614
|
|
|
615
615
|
/**
|
|
616
616
|
* merkle proof of existence
|
package/package.json
CHANGED