@initia/initia.js 1.0.13 → 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.
@@ -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: State;
6
- ordering: Order;
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: State, ordering: Order, counterparty: ChannelCounterparty | undefined, connection_hops: string[], version: string, upgrade_sequence: number);
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: State;
22
- ordering: Order;
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: State;
30
- ordering: Order;
31
+ state: string;
32
+ ordering: string;
31
33
  counterparty?: ChannelCounterparty.Data;
32
34
  connection_hops: string[];
33
35
  version: string;
@@ -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: State;
6
- ordering: Order;
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: State, ordering: Order, counterparty: ChannelCounterparty | undefined, connection_hops: string[], version: string, port_id: string, channel_id: string, upgrade_sequence: number);
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: State;
24
- ordering: Order;
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: State;
34
- ordering: Order;
35
+ state: string;
36
+ ordering: string;
35
37
  counterparty?: ChannelCounterparty.Data;
36
38
  connection_hops: string[];
37
39
  version: string;
@@ -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
+ }
@@ -15,6 +15,7 @@ import { MsgChannelUpgradeAck } from './MsgChannelUpgradeAck';
15
15
  import { MsgChannelUpgradeConfirm } from './MsgChannelUpgradeConfirm';
16
16
  import { MsgChannelUpgradeTimeout } from './MsgChannelUpgradeTimeout';
17
17
  import { MsgChannelUpgradeCancel } from './MsgChannelUpgradeCancel';
18
+ import { MsgChannelUpgradeOpen } from './MsgChannelUpgradeOpen';
18
19
  export * from './MsgChannelOpenInit';
19
20
  export * from './MsgChannelOpenTry';
20
21
  export * from './MsgChannelOpenConfirm';
@@ -32,8 +33,9 @@ export * from './MsgChannelUpgradeAck';
32
33
  export * from './MsgChannelUpgradeConfirm';
33
34
  export * from './MsgChannelUpgradeTimeout';
34
35
  export * from './MsgChannelUpgradeCancel';
35
- export type IbcChannelMsg = MsgChannelOpenInit | MsgChannelOpenTry | MsgChannelOpenConfirm | MsgChannelOpenAck | MsgChannelCloseInit | MsgChannelCloseConfirm | MsgRecvPacket | MsgAcknowledgement | MsgTimeout | MsgTimeoutOnClose | MsgUpdateIbcChannelParams | MsgChannelUpgradeInit | MsgChannelUpgradeTry | MsgChannelUpgradeAck | MsgChannelUpgradeConfirm | MsgChannelUpgradeTimeout | 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;
36
38
  export declare namespace IbcChannelMsg {
37
- 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;
38
- 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;
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;
39
41
  }
@@ -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: Order;
11
- constructor(owner: AccAddress, connection_id: string, version: string, ordering: Order);
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: Order;
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: Order;
36
+ ordering: string;
37
37
  }
38
38
  type Proto = MsgRegisterAccount_pb;
39
39
  }