types

package
v6.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 10 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ActiveChannel

type ActiveChannel struct {
	ConnectionId        string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
	PortId              string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	ChannelId           string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	IsMiddlewareEnabled bool   `` /* 150-byte string literal not displayed */
}

ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to indicate if the channel is middleware enabled

func (*ActiveChannel) Descriptor

func (*ActiveChannel) Descriptor() ([]byte, []int)

func (*ActiveChannel) GetChannelId

func (m *ActiveChannel) GetChannelId() string

func (*ActiveChannel) GetConnectionId

func (m *ActiveChannel) GetConnectionId() string

func (*ActiveChannel) GetIsMiddlewareEnabled

func (m *ActiveChannel) GetIsMiddlewareEnabled() bool

func (*ActiveChannel) GetPortId

func (m *ActiveChannel) GetPortId() string

func (*ActiveChannel) Marshal

func (m *ActiveChannel) Marshal() (dAtA []byte, err error)

func (*ActiveChannel) MarshalTo

func (m *ActiveChannel) MarshalTo(dAtA []byte) (int, error)

func (*ActiveChannel) MarshalToSizedBuffer

func (m *ActiveChannel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ActiveChannel) ProtoMessage

func (*ActiveChannel) ProtoMessage()

func (*ActiveChannel) Reset

func (m *ActiveChannel) Reset()

func (*ActiveChannel) Size

func (m *ActiveChannel) Size() (n int)

func (*ActiveChannel) String

func (m *ActiveChannel) String() string

func (*ActiveChannel) Unmarshal

func (m *ActiveChannel) Unmarshal(dAtA []byte) error

func (*ActiveChannel) XXX_DiscardUnknown

func (m *ActiveChannel) XXX_DiscardUnknown()

func (*ActiveChannel) XXX_Marshal

func (m *ActiveChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ActiveChannel) XXX_Merge

func (m *ActiveChannel) XXX_Merge(src proto.Message)

func (*ActiveChannel) XXX_Size

func (m *ActiveChannel) XXX_Size() int

func (*ActiveChannel) XXX_Unmarshal

func (m *ActiveChannel) XXX_Unmarshal(b []byte) error

type ControllerGenesisState

type ControllerGenesisState struct {
	ActiveChannels     []ActiveChannel               `protobuf:"bytes,1,rep,name=active_channels,json=activeChannels,proto3" json:"active_channels" yaml:"active_channels"`
	InterchainAccounts []RegisteredInterchainAccount `` /* 132-byte string literal not displayed */
	Ports              []string                      `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
	Params             types.Params                  `protobuf:"bytes,4,opt,name=params,proto3" json:"params"`
}

ControllerGenesisState defines the interchain accounts controller genesis state

func DefaultControllerGenesis

func DefaultControllerGenesis() ControllerGenesisState

DefaultControllerGenesis creates and returns the default interchain accounts ControllerGenesisState

func NewControllerGenesisState

func NewControllerGenesisState(channels []ActiveChannel, accounts []RegisteredInterchainAccount, ports []string, controllerParams controllertypes.Params) ControllerGenesisState

NewControllerGenesisState creates a returns a new ControllerGenesisState instance

func (*ControllerGenesisState) Descriptor

func (*ControllerGenesisState) Descriptor() ([]byte, []int)

func (*ControllerGenesisState) GetActiveChannels

func (m *ControllerGenesisState) GetActiveChannels() []ActiveChannel

func (*ControllerGenesisState) GetInterchainAccounts

func (m *ControllerGenesisState) GetInterchainAccounts() []RegisteredInterchainAccount

func (*ControllerGenesisState) GetParams

func (m *ControllerGenesisState) GetParams() types.Params

func (*ControllerGenesisState) GetPorts

func (m *ControllerGenesisState) GetPorts() []string

func (*ControllerGenesisState) Marshal

func (m *ControllerGenesisState) Marshal() (dAtA []byte, err error)

func (*ControllerGenesisState) MarshalTo

func (m *ControllerGenesisState) MarshalTo(dAtA []byte) (int, error)

func (*ControllerGenesisState) MarshalToSizedBuffer

func (m *ControllerGenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ControllerGenesisState) ProtoMessage

func (*ControllerGenesisState) ProtoMessage()

func (*ControllerGenesisState) Reset

func (m *ControllerGenesisState) Reset()

func (*ControllerGenesisState) Size

func (m *ControllerGenesisState) Size() (n int)

func (*ControllerGenesisState) String

func (m *ControllerGenesisState) String() string

func (*ControllerGenesisState) Unmarshal

func (m *ControllerGenesisState) Unmarshal(dAtA []byte) error

func (ControllerGenesisState) Validate

func (gs ControllerGenesisState) Validate() error

Validate performs basic validation of the ControllerGenesisState

func (*ControllerGenesisState) XXX_DiscardUnknown

func (m *ControllerGenesisState) XXX_DiscardUnknown()

func (*ControllerGenesisState) XXX_Marshal

func (m *ControllerGenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ControllerGenesisState) XXX_Merge

func (m *ControllerGenesisState) XXX_Merge(src proto.Message)

func (*ControllerGenesisState) XXX_Size

func (m *ControllerGenesisState) XXX_Size() int

func (*ControllerGenesisState) XXX_Unmarshal

func (m *ControllerGenesisState) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	ControllerGenesisState ControllerGenesisState `` /* 151-byte string literal not displayed */
	HostGenesisState       HostGenesisState       `` /* 127-byte string literal not displayed */
}

GenesisState defines the interchain accounts genesis state

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis creates and returns the interchain accounts GenesisState

func NewGenesisState

func NewGenesisState(controllerGenesisState ControllerGenesisState, hostGenesisState HostGenesisState) *GenesisState

NewGenesisState creates and returns a new GenesisState instance from the provided controller and host genesis state types

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetControllerGenesisState

func (m *GenesisState) GetControllerGenesisState() ControllerGenesisState

func (*GenesisState) GetHostGenesisState

func (m *GenesisState) GetHostGenesisState() HostGenesisState

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic validation of the interchain accounts GenesisState

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type HostGenesisState

type HostGenesisState struct {
	ActiveChannels     []ActiveChannel               `protobuf:"bytes,1,rep,name=active_channels,json=activeChannels,proto3" json:"active_channels" yaml:"active_channels"`
	InterchainAccounts []RegisteredInterchainAccount `` /* 132-byte string literal not displayed */
	Port               string                        `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
	Params             types1.Params                 `protobuf:"bytes,4,opt,name=params,proto3" json:"params"`
}

HostGenesisState defines the interchain accounts host genesis state

func DefaultHostGenesis

func DefaultHostGenesis() HostGenesisState

DefaultHostGenesis creates and returns the default interchain accounts HostGenesisState

func NewHostGenesisState

func NewHostGenesisState(channels []ActiveChannel, accounts []RegisteredInterchainAccount, port string, hostParams hosttypes.Params) HostGenesisState

NewHostGenesisState creates a returns a new HostGenesisState instance

func (*HostGenesisState) Descriptor

func (*HostGenesisState) Descriptor() ([]byte, []int)

func (*HostGenesisState) GetActiveChannels

func (m *HostGenesisState) GetActiveChannels() []ActiveChannel

func (*HostGenesisState) GetInterchainAccounts

func (m *HostGenesisState) GetInterchainAccounts() []RegisteredInterchainAccount

func (*HostGenesisState) GetParams

func (m *HostGenesisState) GetParams() types1.Params

func (*HostGenesisState) GetPort

func (m *HostGenesisState) GetPort() string

func (*HostGenesisState) Marshal

func (m *HostGenesisState) Marshal() (dAtA []byte, err error)

func (*HostGenesisState) MarshalTo

func (m *HostGenesisState) MarshalTo(dAtA []byte) (int, error)

func (*HostGenesisState) MarshalToSizedBuffer

func (m *HostGenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostGenesisState) ProtoMessage

func (*HostGenesisState) ProtoMessage()

func (*HostGenesisState) Reset

func (m *HostGenesisState) Reset()

func (*HostGenesisState) Size

func (m *HostGenesisState) Size() (n int)

func (*HostGenesisState) String

func (m *HostGenesisState) String() string

func (*HostGenesisState) Unmarshal

func (m *HostGenesisState) Unmarshal(dAtA []byte) error

func (HostGenesisState) Validate

func (gs HostGenesisState) Validate() error

Validate performs basic validation of the HostGenesisState

func (*HostGenesisState) XXX_DiscardUnknown

func (m *HostGenesisState) XXX_DiscardUnknown()

func (*HostGenesisState) XXX_Marshal

func (m *HostGenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HostGenesisState) XXX_Merge

func (m *HostGenesisState) XXX_Merge(src proto.Message)

func (*HostGenesisState) XXX_Size

func (m *HostGenesisState) XXX_Size() int

func (*HostGenesisState) XXX_Unmarshal

func (m *HostGenesisState) XXX_Unmarshal(b []byte) error

type RegisteredInterchainAccount

type RegisteredInterchainAccount struct {
	ConnectionId   string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
	PortId         string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	AccountAddress string `` /* 126-byte string literal not displayed */
}

RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address

func (*RegisteredInterchainAccount) Descriptor

func (*RegisteredInterchainAccount) Descriptor() ([]byte, []int)

func (*RegisteredInterchainAccount) GetAccountAddress

func (m *RegisteredInterchainAccount) GetAccountAddress() string

func (*RegisteredInterchainAccount) GetConnectionId

func (m *RegisteredInterchainAccount) GetConnectionId() string

func (*RegisteredInterchainAccount) GetPortId

func (m *RegisteredInterchainAccount) GetPortId() string

func (*RegisteredInterchainAccount) Marshal

func (m *RegisteredInterchainAccount) Marshal() (dAtA []byte, err error)

func (*RegisteredInterchainAccount) MarshalTo

func (m *RegisteredInterchainAccount) MarshalTo(dAtA []byte) (int, error)

func (*RegisteredInterchainAccount) MarshalToSizedBuffer

func (m *RegisteredInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegisteredInterchainAccount) ProtoMessage

func (*RegisteredInterchainAccount) ProtoMessage()

func (*RegisteredInterchainAccount) Reset

func (m *RegisteredInterchainAccount) Reset()

func (*RegisteredInterchainAccount) Size

func (m *RegisteredInterchainAccount) Size() (n int)

func (*RegisteredInterchainAccount) String

func (m *RegisteredInterchainAccount) String() string

func (*RegisteredInterchainAccount) Unmarshal

func (m *RegisteredInterchainAccount) Unmarshal(dAtA []byte) error

func (*RegisteredInterchainAccount) XXX_DiscardUnknown

func (m *RegisteredInterchainAccount) XXX_DiscardUnknown()

func (*RegisteredInterchainAccount) XXX_Marshal

func (m *RegisteredInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisteredInterchainAccount) XXX_Merge

func (m *RegisteredInterchainAccount) XXX_Merge(src proto.Message)

func (*RegisteredInterchainAccount) XXX_Size

func (m *RegisteredInterchainAccount) XXX_Size() int

func (*RegisteredInterchainAccount) XXX_Unmarshal

func (m *RegisteredInterchainAccount) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL