@initia/initia.js 1.0.12 → 1.0.14
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/dist/client/rest/api/IbcPermAPI.d.ts +3 -3
- package/dist/core/ibc/core/channel/Channel.d.ts +10 -8
- package/dist/core/ibc/core/channel/ChannelOrder.d.ts +3 -0
- package/dist/core/ibc/core/channel/ChannelState.d.ts +3 -0
- package/dist/core/ibc/core/channel/ErrorReceipt.d.ts +20 -0
- package/dist/core/ibc/core/channel/IdentifiedChannel.d.ts +10 -8
- package/dist/core/ibc/core/channel/Upgrade.d.ts +22 -0
- package/dist/core/ibc/core/channel/UpgradeFields.d.ts +23 -0
- package/dist/core/ibc/core/channel/index.d.ts +5 -0
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeAck.d.ts +37 -0
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeCancel.d.ts +35 -0
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeConfirm.d.ts +40 -0
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeInit.d.ts +30 -0
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeOpen.d.ts +37 -0
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeTimeout.d.ts +35 -0
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeTry.d.ts +41 -0
- package/dist/core/ibc/core/channel/msgs/index.d.ts +17 -3
- package/dist/core/ibc/core/connection/ConnectionState.d.ts +3 -0
- package/dist/core/ibc/core/connection/IdentifiedConnection.d.ts +4 -4
- package/dist/core/ibc/core/connection/index.d.ts +1 -0
- package/dist/core/intertx/msgs/MsgRegisterAccount.d.ts +5 -5
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +13565 -12704
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ChannelStateResponse {
|
|
4
4
|
port_id: string;
|
|
5
5
|
channel_id: string;
|
|
6
6
|
admin: string;
|
|
7
7
|
relayers: string[];
|
|
8
8
|
}
|
|
9
9
|
export declare class IbcPermAPI extends BaseAPI {
|
|
10
|
-
channelStates(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[
|
|
11
|
-
channelState(channel_id: string, port_id: string, params?: APIParams, headers?: Record<string, string>): Promise<
|
|
10
|
+
channelStates(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[ChannelStateResponse[], Pagination]>;
|
|
11
|
+
channelState(channel_id: string, port_id: string, params?: APIParams, headers?: Record<string, string>): Promise<ChannelStateResponse>;
|
|
12
12
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { State, Order, Channel as Channel_pb } from '@initia/initia.proto/ibc/core/channel/v1/channel';
|
|
2
1
|
import { JSONSerializable } from '../../../../util/json';
|
|
2
|
+
import { Channel as Channel_pb } from '@initia/initia.proto/ibc/core/channel/v1/channel';
|
|
3
|
+
import { ChannelState } from './ChannelState';
|
|
4
|
+
import { ChannelOrder } from './ChannelOrder';
|
|
3
5
|
import { ChannelCounterparty } from './ChannelCounterparty';
|
|
4
6
|
export declare class Channel extends JSONSerializable<Channel.Amino, Channel.Data, Channel.Proto> {
|
|
5
|
-
state:
|
|
6
|
-
ordering:
|
|
7
|
+
state: ChannelState;
|
|
8
|
+
ordering: ChannelOrder;
|
|
7
9
|
counterparty: ChannelCounterparty | undefined;
|
|
8
10
|
connection_hops: string[];
|
|
9
11
|
version: string;
|
|
10
12
|
upgrade_sequence: number;
|
|
11
|
-
constructor(state:
|
|
13
|
+
constructor(state: ChannelState, ordering: ChannelOrder, counterparty: ChannelCounterparty | undefined, connection_hops: string[], version: string, upgrade_sequence: number);
|
|
12
14
|
static fromAmino(data: Channel.Amino): Channel;
|
|
13
15
|
toAmino(): Channel.Amino;
|
|
14
16
|
static fromData(data: Channel.Data): Channel;
|
|
@@ -18,16 +20,16 @@ export declare class Channel extends JSONSerializable<Channel.Amino, Channel.Dat
|
|
|
18
20
|
}
|
|
19
21
|
export declare namespace Channel {
|
|
20
22
|
interface Amino {
|
|
21
|
-
state:
|
|
22
|
-
ordering:
|
|
23
|
+
state: string;
|
|
24
|
+
ordering: string;
|
|
23
25
|
counterparty?: ChannelCounterparty.Amino;
|
|
24
26
|
connection_hops: string[];
|
|
25
27
|
version: string;
|
|
26
28
|
upgrade_sequence: string;
|
|
27
29
|
}
|
|
28
30
|
interface Data {
|
|
29
|
-
state:
|
|
30
|
-
ordering:
|
|
31
|
+
state: string;
|
|
32
|
+
ordering: string;
|
|
31
33
|
counterparty?: ChannelCounterparty.Data;
|
|
32
34
|
connection_hops: string[];
|
|
33
35
|
version: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../util/json';
|
|
2
|
+
import { ErrorReceipt as ErrorReceipt_pb } from '@initia/initia.proto/ibc/core/channel/v1/upgrade';
|
|
3
|
+
export declare class ErrorReceipt extends JSONSerializable<any, ErrorReceipt.Data, ErrorReceipt.Proto> {
|
|
4
|
+
sequence: number;
|
|
5
|
+
message: string;
|
|
6
|
+
constructor(sequence: number, message: string);
|
|
7
|
+
static fromAmino(_: any): ErrorReceipt;
|
|
8
|
+
toAmino(): any;
|
|
9
|
+
static fromData(data: ErrorReceipt.Data): ErrorReceipt;
|
|
10
|
+
toData(): ErrorReceipt.Data;
|
|
11
|
+
static fromProto(proto: ErrorReceipt.Proto): ErrorReceipt;
|
|
12
|
+
toProto(): ErrorReceipt.Proto;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace ErrorReceipt {
|
|
15
|
+
interface Data {
|
|
16
|
+
sequence: string;
|
|
17
|
+
message: string;
|
|
18
|
+
}
|
|
19
|
+
type Proto = ErrorReceipt_pb;
|
|
20
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { State, Order, IdentifiedChannel as IdentifiedChannel_pb } from '@initia/initia.proto/ibc/core/channel/v1/channel';
|
|
2
1
|
import { JSONSerializable } from '../../../../util/json';
|
|
2
|
+
import { IdentifiedChannel as IdentifiedChannel_pb } from '@initia/initia.proto/ibc/core/channel/v1/channel';
|
|
3
|
+
import { ChannelState } from './ChannelState';
|
|
4
|
+
import { ChannelOrder } from './ChannelOrder';
|
|
3
5
|
import { ChannelCounterparty } from './ChannelCounterparty';
|
|
4
6
|
export declare class IdentifiedChannel extends JSONSerializable<IdentifiedChannel.Amino, IdentifiedChannel.Data, IdentifiedChannel.Proto> {
|
|
5
|
-
state:
|
|
6
|
-
ordering:
|
|
7
|
+
state: ChannelState;
|
|
8
|
+
ordering: ChannelOrder;
|
|
7
9
|
counterparty: ChannelCounterparty | undefined;
|
|
8
10
|
connection_hops: string[];
|
|
9
11
|
version: string;
|
|
10
12
|
port_id: string;
|
|
11
13
|
channel_id: string;
|
|
12
14
|
upgrade_sequence: number;
|
|
13
|
-
constructor(state:
|
|
15
|
+
constructor(state: ChannelState, ordering: ChannelOrder, counterparty: ChannelCounterparty | undefined, connection_hops: string[], version: string, port_id: string, channel_id: string, upgrade_sequence: number);
|
|
14
16
|
static fromAmino(data: IdentifiedChannel.Amino): IdentifiedChannel;
|
|
15
17
|
toAmino(): IdentifiedChannel.Amino;
|
|
16
18
|
static fromData(data: IdentifiedChannel.Data): IdentifiedChannel;
|
|
@@ -20,8 +22,8 @@ export declare class IdentifiedChannel extends JSONSerializable<IdentifiedChanne
|
|
|
20
22
|
}
|
|
21
23
|
export declare namespace IdentifiedChannel {
|
|
22
24
|
interface Amino {
|
|
23
|
-
state:
|
|
24
|
-
ordering:
|
|
25
|
+
state: string;
|
|
26
|
+
ordering: string;
|
|
25
27
|
counterparty?: ChannelCounterparty.Amino;
|
|
26
28
|
connection_hops: string[];
|
|
27
29
|
version: string;
|
|
@@ -30,8 +32,8 @@ export declare namespace IdentifiedChannel {
|
|
|
30
32
|
upgrade_sequence: string;
|
|
31
33
|
}
|
|
32
34
|
interface Data {
|
|
33
|
-
state:
|
|
34
|
-
ordering:
|
|
35
|
+
state: string;
|
|
36
|
+
ordering: string;
|
|
35
37
|
counterparty?: ChannelCounterparty.Data;
|
|
36
38
|
connection_hops: string[];
|
|
37
39
|
version: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../util/json';
|
|
2
|
+
import { Upgrade as Upgrade_pb } from '@initia/initia.proto/ibc/core/channel/v1/upgrade';
|
|
3
|
+
import { UpgradeFields } from './UpgradeFields';
|
|
4
|
+
import { Timeout } from './Timeout';
|
|
5
|
+
export declare class Upgrade extends JSONSerializable<any, Upgrade.Data, Upgrade.Proto> {
|
|
6
|
+
fields: UpgradeFields | undefined;
|
|
7
|
+
timeout: Timeout | undefined;
|
|
8
|
+
constructor(fields: UpgradeFields | undefined, timeout: Timeout | undefined);
|
|
9
|
+
static fromAmino(_: any): Upgrade;
|
|
10
|
+
toAmino(): any;
|
|
11
|
+
static fromData(data: Upgrade.Data): Upgrade;
|
|
12
|
+
toData(): Upgrade.Data;
|
|
13
|
+
static fromProto(proto: Upgrade.Proto): Upgrade;
|
|
14
|
+
toProto(): Upgrade.Proto;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace Upgrade {
|
|
17
|
+
interface Data {
|
|
18
|
+
fields?: UpgradeFields.Data;
|
|
19
|
+
timeout?: Timeout.Data;
|
|
20
|
+
}
|
|
21
|
+
type Proto = Upgrade_pb;
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../util/json';
|
|
2
|
+
import { UpgradeFields as UpgradeFields_pb } from '@initia/initia.proto/ibc/core/channel/v1/upgrade';
|
|
3
|
+
import { ChannelOrder } from './ChannelOrder';
|
|
4
|
+
export declare class UpgradeFields extends JSONSerializable<any, UpgradeFields.Data, UpgradeFields.Proto> {
|
|
5
|
+
ordering: ChannelOrder;
|
|
6
|
+
connection_hops: string[];
|
|
7
|
+
version: string;
|
|
8
|
+
constructor(ordering: ChannelOrder, connection_hops: string[], version: string);
|
|
9
|
+
static fromAmino(_: any): UpgradeFields;
|
|
10
|
+
toAmino(): any;
|
|
11
|
+
static fromData(data: UpgradeFields.Data): UpgradeFields;
|
|
12
|
+
toData(): UpgradeFields.Data;
|
|
13
|
+
static fromProto(proto: UpgradeFields.Proto): UpgradeFields;
|
|
14
|
+
toProto(): UpgradeFields.Proto;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace UpgradeFields {
|
|
17
|
+
interface Data {
|
|
18
|
+
ordering: string;
|
|
19
|
+
connection_hops: string[];
|
|
20
|
+
version: string;
|
|
21
|
+
}
|
|
22
|
+
type Proto = UpgradeFields_pb;
|
|
23
|
+
}
|
|
@@ -6,3 +6,8 @@ export * from './IdentifiedChannel';
|
|
|
6
6
|
export * from './Packet';
|
|
7
7
|
export * from './PacketId';
|
|
8
8
|
export * from './Timeout';
|
|
9
|
+
export * from './Upgrade';
|
|
10
|
+
export * from './UpgradeFields';
|
|
11
|
+
export * from './ChannelOrder';
|
|
12
|
+
export * from './ChannelState';
|
|
13
|
+
export * from './ErrorReceipt';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgChannelUpgradeAck as MsgChannelUpgradeAck_pb } from '@initia/initia.proto/ibc/core/channel/v1/tx';
|
|
5
|
+
import { Upgrade } from '../Upgrade';
|
|
6
|
+
import { Height } from '../../client/Height';
|
|
7
|
+
export declare class MsgChannelUpgradeAck extends JSONSerializable<any, MsgChannelUpgradeAck.Data, MsgChannelUpgradeAck.Proto> {
|
|
8
|
+
port_id: string;
|
|
9
|
+
channel_id: string;
|
|
10
|
+
counterparty_upgrade: Upgrade | undefined;
|
|
11
|
+
proof_channel: string;
|
|
12
|
+
proof_upgrade: string;
|
|
13
|
+
proof_height: Height | undefined;
|
|
14
|
+
signer: AccAddress;
|
|
15
|
+
constructor(port_id: string, channel_id: string, counterparty_upgrade: Upgrade | undefined, proof_channel: string, proof_upgrade: string, proof_height: Height | undefined, signer: AccAddress);
|
|
16
|
+
static fromAmino(_: any): MsgChannelUpgradeAck;
|
|
17
|
+
toAmino(): any;
|
|
18
|
+
static fromData(data: MsgChannelUpgradeAck.Data): MsgChannelUpgradeAck;
|
|
19
|
+
toData(): MsgChannelUpgradeAck.Data;
|
|
20
|
+
static fromProto(proto: MsgChannelUpgradeAck.Proto): MsgChannelUpgradeAck;
|
|
21
|
+
toProto(): MsgChannelUpgradeAck.Proto;
|
|
22
|
+
packAny(): Any;
|
|
23
|
+
static unpackAny(msgAny: Any): MsgChannelUpgradeAck;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace MsgChannelUpgradeAck {
|
|
26
|
+
interface Data {
|
|
27
|
+
'@type': '/ibc.core.channel.v1.MsgChannelUpgradeAck';
|
|
28
|
+
port_id: string;
|
|
29
|
+
channel_id: string;
|
|
30
|
+
counterparty_upgrade?: Upgrade.Data;
|
|
31
|
+
proof_channel: string;
|
|
32
|
+
proof_upgrade: string;
|
|
33
|
+
proof_height?: Height.Data;
|
|
34
|
+
signer: AccAddress;
|
|
35
|
+
}
|
|
36
|
+
type Proto = MsgChannelUpgradeAck_pb;
|
|
37
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgChannelUpgradeCancel as MsgChannelUpgradeCancel_pb } from '@initia/initia.proto/ibc/core/channel/v1/tx';
|
|
5
|
+
import { ErrorReceipt } from '../ErrorReceipt';
|
|
6
|
+
import { Height } from '../../client/Height';
|
|
7
|
+
export declare class MsgChannelUpgradeCancel extends JSONSerializable<any, MsgChannelUpgradeCancel.Data, MsgChannelUpgradeCancel.Proto> {
|
|
8
|
+
port_id: string;
|
|
9
|
+
channel_id: string;
|
|
10
|
+
error_receipt: ErrorReceipt | undefined;
|
|
11
|
+
proof_error_receipt: string;
|
|
12
|
+
proof_height: Height | undefined;
|
|
13
|
+
signer: AccAddress;
|
|
14
|
+
constructor(port_id: string, channel_id: string, error_receipt: ErrorReceipt | undefined, proof_error_receipt: string, proof_height: Height | undefined, signer: AccAddress);
|
|
15
|
+
static fromAmino(_: any): MsgChannelUpgradeCancel;
|
|
16
|
+
toAmino(): any;
|
|
17
|
+
static fromData(data: MsgChannelUpgradeCancel.Data): MsgChannelUpgradeCancel;
|
|
18
|
+
toData(): MsgChannelUpgradeCancel.Data;
|
|
19
|
+
static fromProto(proto: MsgChannelUpgradeCancel.Proto): MsgChannelUpgradeCancel;
|
|
20
|
+
toProto(): MsgChannelUpgradeCancel.Proto;
|
|
21
|
+
packAny(): Any;
|
|
22
|
+
static unpackAny(msgAny: Any): MsgChannelUpgradeCancel;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace MsgChannelUpgradeCancel {
|
|
25
|
+
interface Data {
|
|
26
|
+
'@type': '/ibc.core.channel.v1.MsgChannelUpgradeCancel';
|
|
27
|
+
port_id: string;
|
|
28
|
+
channel_id: string;
|
|
29
|
+
error_receipt?: ErrorReceipt.Data;
|
|
30
|
+
proof_error_receipt: string;
|
|
31
|
+
proof_height?: Height.Data;
|
|
32
|
+
signer: AccAddress;
|
|
33
|
+
}
|
|
34
|
+
type Proto = MsgChannelUpgradeCancel_pb;
|
|
35
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgChannelUpgradeConfirm as MsgChannelUpgradeConfirm_pb } from '@initia/initia.proto/ibc/core/channel/v1/tx';
|
|
5
|
+
import { ChannelState } from '../ChannelState';
|
|
6
|
+
import { Upgrade } from '../Upgrade';
|
|
7
|
+
import { Height } from '../../client/Height';
|
|
8
|
+
export declare class MsgChannelUpgradeConfirm extends JSONSerializable<any, MsgChannelUpgradeConfirm.Data, MsgChannelUpgradeConfirm.Proto> {
|
|
9
|
+
port_id: string;
|
|
10
|
+
channel_id: string;
|
|
11
|
+
counterparty_channel_state: ChannelState;
|
|
12
|
+
counterparty_upgrade: Upgrade | undefined;
|
|
13
|
+
proof_channel: string;
|
|
14
|
+
proof_upgrade: string;
|
|
15
|
+
proof_height: Height | undefined;
|
|
16
|
+
signer: AccAddress;
|
|
17
|
+
constructor(port_id: string, channel_id: string, counterparty_channel_state: ChannelState, counterparty_upgrade: Upgrade | undefined, proof_channel: string, proof_upgrade: string, proof_height: Height | undefined, signer: AccAddress);
|
|
18
|
+
static fromAmino(_: any): MsgChannelUpgradeConfirm;
|
|
19
|
+
toAmino(): any;
|
|
20
|
+
static fromData(data: MsgChannelUpgradeConfirm.Data): MsgChannelUpgradeConfirm;
|
|
21
|
+
toData(): MsgChannelUpgradeConfirm.Data;
|
|
22
|
+
static fromProto(proto: MsgChannelUpgradeConfirm.Proto): MsgChannelUpgradeConfirm;
|
|
23
|
+
toProto(): MsgChannelUpgradeConfirm.Proto;
|
|
24
|
+
packAny(): Any;
|
|
25
|
+
static unpackAny(msgAny: Any): MsgChannelUpgradeConfirm;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace MsgChannelUpgradeConfirm {
|
|
28
|
+
interface Data {
|
|
29
|
+
'@type': '/ibc.core.channel.v1.MsgChannelUpgradeConfirm';
|
|
30
|
+
port_id: string;
|
|
31
|
+
channel_id: string;
|
|
32
|
+
counterparty_channel_state: string;
|
|
33
|
+
counterparty_upgrade?: Upgrade.Data;
|
|
34
|
+
proof_channel: string;
|
|
35
|
+
proof_upgrade: string;
|
|
36
|
+
proof_height?: Height.Data;
|
|
37
|
+
signer: AccAddress;
|
|
38
|
+
}
|
|
39
|
+
type Proto = MsgChannelUpgradeConfirm_pb;
|
|
40
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgChannelUpgradeInit as MsgChannelUpgradeInit_pb } from '@initia/initia.proto/ibc/core/channel/v1/tx';
|
|
5
|
+
import { UpgradeFields } from '../UpgradeFields';
|
|
6
|
+
export declare class MsgChannelUpgradeInit extends JSONSerializable<any, MsgChannelUpgradeInit.Data, MsgChannelUpgradeInit.Proto> {
|
|
7
|
+
port_id: string;
|
|
8
|
+
channel_id: string;
|
|
9
|
+
fields: UpgradeFields | undefined;
|
|
10
|
+
signer: AccAddress;
|
|
11
|
+
constructor(port_id: string, channel_id: string, fields: UpgradeFields | undefined, signer: AccAddress);
|
|
12
|
+
static fromAmino(_: any): MsgChannelUpgradeInit;
|
|
13
|
+
toAmino(): any;
|
|
14
|
+
static fromData(data: MsgChannelUpgradeInit.Data): MsgChannelUpgradeInit;
|
|
15
|
+
toData(): MsgChannelUpgradeInit.Data;
|
|
16
|
+
static fromProto(proto: MsgChannelUpgradeInit.Proto): MsgChannelUpgradeInit;
|
|
17
|
+
toProto(): MsgChannelUpgradeInit.Proto;
|
|
18
|
+
packAny(): Any;
|
|
19
|
+
static unpackAny(msgAny: Any): MsgChannelUpgradeInit;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace MsgChannelUpgradeInit {
|
|
22
|
+
interface Data {
|
|
23
|
+
'@type': '/ibc.core.channel.v1.MsgChannelUpgradeInit';
|
|
24
|
+
port_id: string;
|
|
25
|
+
channel_id: string;
|
|
26
|
+
fields?: UpgradeFields.Data;
|
|
27
|
+
signer: AccAddress;
|
|
28
|
+
}
|
|
29
|
+
type Proto = MsgChannelUpgradeInit_pb;
|
|
30
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgChannelUpgradeOpen as MsgChannelUpgradeOpen_pb } from '@initia/initia.proto/ibc/core/channel/v1/tx';
|
|
5
|
+
import { ChannelState } from '../ChannelState';
|
|
6
|
+
import { Height } from '../../client/Height';
|
|
7
|
+
export declare class MsgChannelUpgradeOpen extends JSONSerializable<any, MsgChannelUpgradeOpen.Data, MsgChannelUpgradeOpen.Proto> {
|
|
8
|
+
port_id: string;
|
|
9
|
+
channel_id: string;
|
|
10
|
+
counterparty_channel_state: ChannelState;
|
|
11
|
+
counterparty_upgrade_sequence: number;
|
|
12
|
+
proof_channel: string;
|
|
13
|
+
proof_height: Height | undefined;
|
|
14
|
+
signer: AccAddress;
|
|
15
|
+
constructor(port_id: string, channel_id: string, counterparty_channel_state: ChannelState, counterparty_upgrade_sequence: number, proof_channel: string, proof_height: Height | undefined, signer: AccAddress);
|
|
16
|
+
static fromAmino(_: any): MsgChannelUpgradeOpen;
|
|
17
|
+
toAmino(): any;
|
|
18
|
+
static fromData(data: MsgChannelUpgradeOpen.Data): MsgChannelUpgradeOpen;
|
|
19
|
+
toData(): MsgChannelUpgradeOpen.Data;
|
|
20
|
+
static fromProto(proto: MsgChannelUpgradeOpen.Proto): MsgChannelUpgradeOpen;
|
|
21
|
+
toProto(): MsgChannelUpgradeOpen.Proto;
|
|
22
|
+
packAny(): Any;
|
|
23
|
+
static unpackAny(msgAny: Any): MsgChannelUpgradeOpen;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace MsgChannelUpgradeOpen {
|
|
26
|
+
interface Data {
|
|
27
|
+
'@type': '/ibc.core.channel.v1.MsgChannelUpgradeOpen';
|
|
28
|
+
port_id: string;
|
|
29
|
+
channel_id: string;
|
|
30
|
+
counterparty_channel_state: string;
|
|
31
|
+
counterparty_upgrade_sequence: string;
|
|
32
|
+
proof_channel: string;
|
|
33
|
+
proof_height?: Height.Data;
|
|
34
|
+
signer: AccAddress;
|
|
35
|
+
}
|
|
36
|
+
type Proto = MsgChannelUpgradeOpen_pb;
|
|
37
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgChannelUpgradeTimeout as MsgChannelUpgradeTimeout_pb } from '@initia/initia.proto/ibc/core/channel/v1/tx';
|
|
5
|
+
import { Channel } from '../Channel';
|
|
6
|
+
import { Height } from '../../client/Height';
|
|
7
|
+
export declare class MsgChannelUpgradeTimeout extends JSONSerializable<any, MsgChannelUpgradeTimeout.Data, MsgChannelUpgradeTimeout.Proto> {
|
|
8
|
+
port_id: string;
|
|
9
|
+
channel_id: string;
|
|
10
|
+
counterparty_channel: Channel | undefined;
|
|
11
|
+
proof_channel: string;
|
|
12
|
+
proof_height: Height | undefined;
|
|
13
|
+
signer: AccAddress;
|
|
14
|
+
constructor(port_id: string, channel_id: string, counterparty_channel: Channel | undefined, proof_channel: string, proof_height: Height | undefined, signer: AccAddress);
|
|
15
|
+
static fromAmino(_: any): MsgChannelUpgradeTimeout;
|
|
16
|
+
toAmino(): any;
|
|
17
|
+
static fromData(data: MsgChannelUpgradeTimeout.Data): MsgChannelUpgradeTimeout;
|
|
18
|
+
toData(): MsgChannelUpgradeTimeout.Data;
|
|
19
|
+
static fromProto(proto: MsgChannelUpgradeTimeout.Proto): MsgChannelUpgradeTimeout;
|
|
20
|
+
toProto(): MsgChannelUpgradeTimeout.Proto;
|
|
21
|
+
packAny(): Any;
|
|
22
|
+
static unpackAny(msgAny: Any): MsgChannelUpgradeTimeout;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace MsgChannelUpgradeTimeout {
|
|
25
|
+
interface Data {
|
|
26
|
+
'@type': '/ibc.core.channel.v1.MsgChannelUpgradeTimeout';
|
|
27
|
+
port_id: string;
|
|
28
|
+
channel_id: string;
|
|
29
|
+
counterparty_channel?: Channel.Data;
|
|
30
|
+
proof_channel: string;
|
|
31
|
+
proof_height?: Height.Data;
|
|
32
|
+
signer: AccAddress;
|
|
33
|
+
}
|
|
34
|
+
type Proto = MsgChannelUpgradeTimeout_pb;
|
|
35
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgChannelUpgradeTry as MsgChannelUpgradeTry_pb } from '@initia/initia.proto/ibc/core/channel/v1/tx';
|
|
5
|
+
import { UpgradeFields } from '../UpgradeFields';
|
|
6
|
+
import { Height } from '../../client/Height';
|
|
7
|
+
export declare class MsgChannelUpgradeTry extends JSONSerializable<any, MsgChannelUpgradeTry.Data, MsgChannelUpgradeTry.Proto> {
|
|
8
|
+
port_id: string;
|
|
9
|
+
channel_id: string;
|
|
10
|
+
proposed_upgrade_connection_hops: string[];
|
|
11
|
+
counterparty_upgrade_fields: UpgradeFields | undefined;
|
|
12
|
+
counterparty_upgrade_sequence: number;
|
|
13
|
+
proof_channel: string;
|
|
14
|
+
proof_upgrade: string;
|
|
15
|
+
proof_height: Height | undefined;
|
|
16
|
+
signer: AccAddress;
|
|
17
|
+
constructor(port_id: string, channel_id: string, proposed_upgrade_connection_hops: string[], counterparty_upgrade_fields: UpgradeFields | undefined, counterparty_upgrade_sequence: number, proof_channel: string, proof_upgrade: string, proof_height: Height | undefined, signer: AccAddress);
|
|
18
|
+
static fromAmino(_: any): MsgChannelUpgradeTry;
|
|
19
|
+
toAmino(): any;
|
|
20
|
+
static fromData(data: MsgChannelUpgradeTry.Data): MsgChannelUpgradeTry;
|
|
21
|
+
toData(): MsgChannelUpgradeTry.Data;
|
|
22
|
+
static fromProto(proto: MsgChannelUpgradeTry.Proto): MsgChannelUpgradeTry;
|
|
23
|
+
toProto(): MsgChannelUpgradeTry.Proto;
|
|
24
|
+
packAny(): Any;
|
|
25
|
+
static unpackAny(msgAny: Any): MsgChannelUpgradeTry;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace MsgChannelUpgradeTry {
|
|
28
|
+
interface Data {
|
|
29
|
+
'@type': '/ibc.core.channel.v1.MsgChannelUpgradeTry';
|
|
30
|
+
port_id: string;
|
|
31
|
+
channel_id: string;
|
|
32
|
+
proposed_upgrade_connection_hops: string[];
|
|
33
|
+
counterparty_upgrade_fields?: UpgradeFields.Data;
|
|
34
|
+
counterparty_upgrade_sequence: string;
|
|
35
|
+
proof_channel: string;
|
|
36
|
+
proof_upgrade: string;
|
|
37
|
+
proof_height?: Height.Data;
|
|
38
|
+
signer: AccAddress;
|
|
39
|
+
}
|
|
40
|
+
type Proto = MsgChannelUpgradeTry_pb;
|
|
41
|
+
}
|
|
@@ -9,6 +9,13 @@ import { MsgAcknowledgement } from './MsgRecvAcknowledgement';
|
|
|
9
9
|
import { MsgTimeout } from './MsgTimeout';
|
|
10
10
|
import { MsgTimeoutOnClose } from './MsgTimeoutClose';
|
|
11
11
|
import { MsgUpdateIbcChannelParams } from './MsgUpdateIbcChannelParams';
|
|
12
|
+
import { MsgChannelUpgradeInit } from './MsgChannelUpgradeInit';
|
|
13
|
+
import { MsgChannelUpgradeTry } from './MsgChannelUpgradeTry';
|
|
14
|
+
import { MsgChannelUpgradeAck } from './MsgChannelUpgradeAck';
|
|
15
|
+
import { MsgChannelUpgradeConfirm } from './MsgChannelUpgradeConfirm';
|
|
16
|
+
import { MsgChannelUpgradeTimeout } from './MsgChannelUpgradeTimeout';
|
|
17
|
+
import { MsgChannelUpgradeCancel } from './MsgChannelUpgradeCancel';
|
|
18
|
+
import { MsgChannelUpgradeOpen } from './MsgChannelUpgradeOpen';
|
|
12
19
|
export * from './MsgChannelOpenInit';
|
|
13
20
|
export * from './MsgChannelOpenTry';
|
|
14
21
|
export * from './MsgChannelOpenConfirm';
|
|
@@ -20,8 +27,15 @@ export * from './MsgRecvAcknowledgement';
|
|
|
20
27
|
export * from './MsgTimeout';
|
|
21
28
|
export * from './MsgTimeoutClose';
|
|
22
29
|
export * from './MsgUpdateIbcChannelParams';
|
|
23
|
-
export
|
|
30
|
+
export * from './MsgChannelUpgradeInit';
|
|
31
|
+
export * from './MsgChannelUpgradeTry';
|
|
32
|
+
export * from './MsgChannelUpgradeAck';
|
|
33
|
+
export * from './MsgChannelUpgradeConfirm';
|
|
34
|
+
export * from './MsgChannelUpgradeTimeout';
|
|
35
|
+
export * from './MsgChannelUpgradeCancel';
|
|
36
|
+
export * from './MsgChannelUpgradeOpen';
|
|
37
|
+
export type IbcChannelMsg = MsgChannelOpenInit | MsgChannelOpenTry | MsgChannelOpenConfirm | MsgChannelOpenAck | MsgChannelCloseInit | MsgChannelCloseConfirm | MsgRecvPacket | MsgAcknowledgement | MsgTimeout | MsgTimeoutOnClose | MsgUpdateIbcChannelParams | MsgChannelUpgradeInit | MsgChannelUpgradeTry | MsgChannelUpgradeAck | MsgChannelUpgradeConfirm | MsgChannelUpgradeTimeout | MsgChannelUpgradeCancel | MsgChannelUpgradeOpen;
|
|
24
38
|
export declare namespace IbcChannelMsg {
|
|
25
|
-
type Data = MsgChannelOpenInit.Data | MsgChannelOpenTry.Data | MsgChannelOpenConfirm.Data | MsgChannelOpenAck.Data | MsgChannelCloseInit.Data | MsgChannelCloseConfirm.Data | MsgRecvPacket.Data | MsgAcknowledgement.Data | MsgTimeout.Data | MsgTimeoutOnClose.Data | MsgUpdateIbcChannelParams.Data;
|
|
26
|
-
type Proto = MsgChannelOpenInit.Proto | MsgChannelOpenTry.Proto | MsgChannelOpenConfirm.Proto | MsgChannelOpenAck.Proto | MsgChannelCloseInit.Proto | MsgChannelCloseConfirm.Proto | MsgRecvPacket.Proto | MsgAcknowledgement.Proto | MsgTimeout.Proto | MsgTimeoutOnClose.Proto | MsgUpdateIbcChannelParams.Proto;
|
|
39
|
+
type Data = MsgChannelOpenInit.Data | MsgChannelOpenTry.Data | MsgChannelOpenConfirm.Data | MsgChannelOpenAck.Data | MsgChannelCloseInit.Data | MsgChannelCloseConfirm.Data | MsgRecvPacket.Data | MsgAcknowledgement.Data | MsgTimeout.Data | MsgTimeoutOnClose.Data | MsgUpdateIbcChannelParams.Data | MsgChannelUpgradeInit.Data | MsgChannelUpgradeTry.Data | MsgChannelUpgradeAck.Data | MsgChannelUpgradeConfirm.Data | MsgChannelUpgradeTimeout.Data | MsgChannelUpgradeCancel.Data | MsgChannelUpgradeOpen.Data;
|
|
40
|
+
type Proto = MsgChannelOpenInit.Proto | MsgChannelOpenTry.Proto | MsgChannelOpenConfirm.Proto | MsgChannelOpenAck.Proto | MsgChannelCloseInit.Proto | MsgChannelCloseConfirm.Proto | MsgRecvPacket.Proto | MsgAcknowledgement.Proto | MsgTimeout.Proto | MsgTimeoutOnClose.Proto | MsgUpdateIbcChannelParams.Proto | MsgChannelUpgradeInit.Proto | MsgChannelUpgradeTry.Proto | MsgChannelUpgradeAck.Proto | MsgChannelUpgradeConfirm.Proto | MsgChannelUpgradeTimeout.Proto | MsgChannelUpgradeCancel.Proto | MsgChannelUpgradeOpen.Proto;
|
|
27
41
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IdentifiedConnection as IdentifiedConnection_pb
|
|
1
|
+
import { IdentifiedConnection as IdentifiedConnection_pb } from '@initia/initia.proto/ibc/core/connection/v1/connection';
|
|
2
2
|
import { JSONSerializable } from '../../../../util/json';
|
|
3
3
|
import { IbcVersion } from './IbcVersion';
|
|
4
4
|
import { ConnectionCounterparty } from './ConnectionCounterparty';
|
|
5
|
-
|
|
5
|
+
import { ConnectionState } from './ConnectionState';
|
|
6
6
|
export declare class IdentifiedConnection extends JSONSerializable<IdentifiedConnection.Amino, IdentifiedConnection.Data, IdentifiedConnection.Proto> {
|
|
7
7
|
id: string;
|
|
8
8
|
client_id: string;
|
|
9
9
|
versions: IbcVersion[];
|
|
10
|
-
state:
|
|
10
|
+
state: ConnectionState;
|
|
11
11
|
counterparty: ConnectionCounterparty | undefined;
|
|
12
12
|
delay_period: number;
|
|
13
|
-
constructor(id: string, client_id: string, versions: IbcVersion[], state:
|
|
13
|
+
constructor(id: string, client_id: string, versions: IbcVersion[], state: ConnectionState, counterparty: ConnectionCounterparty | undefined, delay_period: number);
|
|
14
14
|
static fromAmino(data: IdentifiedConnection.Amino): IdentifiedConnection;
|
|
15
15
|
toAmino(): IdentifiedConnection.Amino;
|
|
16
16
|
static fromData(data: IdentifiedConnection.Data): IdentifiedConnection;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { JSONSerializable } from '../../../util/json';
|
|
2
2
|
import { AccAddress } from '../../bech32';
|
|
3
3
|
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
-
import { Order } from '@initia/initia.proto/ibc/core/channel/v1/channel';
|
|
5
4
|
import { MsgRegisterAccount as MsgRegisterAccount_pb } from '@initia/initia.proto/initia/intertx/v1/tx';
|
|
5
|
+
import { ChannelOrder } from '../../ibc';
|
|
6
6
|
export declare class MsgRegisterAccount extends JSONSerializable<MsgRegisterAccount.Amino, MsgRegisterAccount.Data, MsgRegisterAccount.Proto> {
|
|
7
7
|
owner: AccAddress;
|
|
8
8
|
connection_id: string;
|
|
9
9
|
version: string;
|
|
10
|
-
ordering:
|
|
11
|
-
constructor(owner: AccAddress, connection_id: string, version: string, ordering:
|
|
10
|
+
ordering: ChannelOrder;
|
|
11
|
+
constructor(owner: AccAddress, connection_id: string, version: string, ordering: ChannelOrder);
|
|
12
12
|
static fromAmino(data: MsgRegisterAccount.Amino): MsgRegisterAccount;
|
|
13
13
|
toAmino(): MsgRegisterAccount.Amino;
|
|
14
14
|
static fromData(data: MsgRegisterAccount.Data): MsgRegisterAccount;
|
|
@@ -25,7 +25,7 @@ export declare namespace MsgRegisterAccount {
|
|
|
25
25
|
owner: AccAddress;
|
|
26
26
|
connection_id: string;
|
|
27
27
|
version: string;
|
|
28
|
-
ordering:
|
|
28
|
+
ordering: string;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
interface Data {
|
|
@@ -33,7 +33,7 @@ export declare namespace MsgRegisterAccount {
|
|
|
33
33
|
owner: AccAddress;
|
|
34
34
|
connection_id: string;
|
|
35
35
|
version: string;
|
|
36
|
-
ordering:
|
|
36
|
+
ordering: string;
|
|
37
37
|
}
|
|
38
38
|
type Proto = MsgRegisterAccount_pb;
|
|
39
39
|
}
|