types

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AttributeKeyL1DepositTxType   = "l1_deposit_tx_type"
	AttributeKeyL2WithdrawalTx    = "l2_withdrawal_tx"
	AttributeKeyL2FeeWithdrawalTx = "l2_fee_withdrawal_tx"
	AttributeKeyFromCosmosAddress = "from_address"
	AttributeKeyToCosmosAddress   = "to_address"
	AttributeKeyMintCosmosAddress = "mint_address"
	AttributeKeySender            = "sender"
	AttributeKeyL1Target          = "target"
	AttributeKeyValue             = "value"
	AttributeKeyMint              = "mint"
	AttributeKeyGasLimit          = "gas_limit"
	AttributeKeyData              = "data"
	AttributeKeyNonce             = "nonce"
	AttributeKeyERC20Address      = "erc20_address"

	L1UserDepositTxType = "l1_user_deposit"

	EventTypeMintETH             = "mint_eth"
	EventTypeMintERC20           = "mint_erc20"
	EventTypeBurnETH             = "burn_eth"
	EventTypeBurnERC20           = "burn_erc20"
	EventTypeWithdrawalInitiated = "withdrawal_initiated"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "rollup"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_rollup"
)
View Source
const (
	// WEI is the denom for wrapped Ether (represented in wei) canonically bridged from Ethereum
	WEI = "wei"
	// L1BlockInfoKey is the store key for the L1BlockInfo
	L1BlockInfoKey = "l1_block_info"
	// ParamsKey is the store key for the x/rollup module parameters
	ParamsKey = "params"
)
View Source
const (
	MinTxGasLimit = params.TxGas
	MaxTxGasLimit = params.MaxGasLimit
)

Variables

View Source
var (
	ErrInvalidL1Txs             = registerErr("invalid L1 txs")
	ErrMintETH                  = registerErr("failed to mint ETH")
	ErrBurnETH                  = registerErr("failed to burn ETH")
	ErrInvalidSender            = registerErr("invalid sender address")
	ErrL1BlockInfo              = registerErr("l1 block info")
	ErrParams                   = registerErr("params")
	ErrProcessL1UserDepositTxs  = registerErr("failed to process L1 user deposit txs")
	ErrProcessL1SystemDepositTx = registerErr("failed to process L1 system deposit tx")
	ErrInitiateFeeWithdrawal    = registerErr("failed to initiate fee withdrawal")
	ErrInitiateERC20Withdrawal  = registerErr("failed to initiate ERC-20 withdrawal")
	ErrUpdateParams             = registerErr("failed to update params")
)
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")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthRollup        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRollup          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRollup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var WrapError = sdkerrors.Wrapf

WrapError wraps a Cosmos-SDK error with extra message while keeping the stack trace at where this func is called.

Functions

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer added in v0.1.3

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis added in v0.1.3

func ValidateGenesis(state GenesisState) error

ValidateGenesis performs basic validation of rollup genesis data returning an error for any failed validation criteria.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(moduleName string) sdk.AccAddress
}

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error

	MintCoins(ctx context.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error

	GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

BankKeeper defines the expected bank keeper interface used in the x/rollup module

type DepositMsg added in v0.1.6

type DepositMsg interface {
	// contains filtered or unexported methods
}

type DepositsTx added in v0.1.6

type DepositsTx struct {
	L1Attributes *MsgSetL1Attributes    `protobuf:"bytes,1,opt,name=l1_attributes,json=l1Attributes,proto3" json:"l1_attributes,omitempty"`
	UserDeposits []*MsgApplyUserDeposit `protobuf:"bytes,2,rep,name=user_deposits,json=userDeposits,proto3" json:"user_deposits,omitempty"`
}

DepositsTx is the Cosmos SDK transaction type that wraps OP Stack deposit transactions.

func (*DepositsTx) Descriptor added in v0.1.6

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

func (*DepositsTx) GetL1Attributes added in v0.1.6

func (m *DepositsTx) GetL1Attributes() *MsgSetL1Attributes

func (*DepositsTx) GetMsgs added in v0.1.6

func (d *DepositsTx) GetMsgs() []proto.Message

func (*DepositsTx) GetMsgsV2 added in v0.1.6

func (d *DepositsTx) GetMsgsV2() ([]protoreflect.ProtoMessage, error)

func (*DepositsTx) GetUserDeposits added in v0.1.6

func (m *DepositsTx) GetUserDeposits() []*MsgApplyUserDeposit

func (*DepositsTx) Marshal added in v0.1.6

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

func (*DepositsTx) MarshalTo added in v0.1.6

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

func (*DepositsTx) MarshalToSizedBuffer added in v0.1.6

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

func (*DepositsTx) ProtoMessage added in v0.1.6

func (*DepositsTx) ProtoMessage()

func (*DepositsTx) Reset added in v0.1.6

func (m *DepositsTx) Reset()

func (*DepositsTx) Size added in v0.1.6

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

func (*DepositsTx) String added in v0.1.6

func (m *DepositsTx) String() string

func (*DepositsTx) Unmarshal added in v0.1.6

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

func (*DepositsTx) XXX_DiscardUnknown added in v0.1.6

func (m *DepositsTx) XXX_DiscardUnknown()

func (*DepositsTx) XXX_Marshal added in v0.1.6

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

func (*DepositsTx) XXX_Merge added in v0.1.6

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

func (*DepositsTx) XXX_Size added in v0.1.6

func (m *DepositsTx) XXX_Size() int

func (*DepositsTx) XXX_Unmarshal added in v0.1.6

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

type GenesisState added in v0.1.3

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the rollup module's genesis state.

func DefaultGenesisState added in v0.1.3

func DefaultGenesisState() *GenesisState

DefaultGenesisState - Return a default genesis state

func NewGenesisState added in v0.1.3

func NewGenesisState(params Params) *GenesisState

NewGenesisState - Create a new genesis state

func (*GenesisState) Descriptor added in v0.1.3

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

func (*GenesisState) GetParams added in v0.1.3

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal added in v0.1.3

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

func (*GenesisState) MarshalTo added in v0.1.3

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

func (*GenesisState) MarshalToSizedBuffer added in v0.1.3

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

func (*GenesisState) ProtoMessage added in v0.1.3

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.1.3

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.1.3

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

func (*GenesisState) String added in v0.1.3

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.1.3

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

func (*GenesisState) XXX_DiscardUnknown added in v0.1.3

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.1.3

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

func (*GenesisState) XXX_Merge added in v0.1.3

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

func (*GenesisState) XXX_Size added in v0.1.3

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.1.3

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

type L1BlockInfo

type L1BlockInfo struct {
	Number            uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	Time              uint64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	BaseFee           []byte `protobuf:"bytes,3,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
	BlockHash         []byte `protobuf:"bytes,4,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	SequenceNumber    uint64 `protobuf:"varint,5,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	BatcherAddr       []byte `protobuf:"bytes,6,opt,name=batcher_addr,json=batcherAddr,proto3" json:"batcher_addr,omitempty"`
	L1FeeOverhead     []byte `protobuf:"bytes,7,opt,name=l1_fee_overhead,json=l1FeeOverhead,proto3" json:"l1_fee_overhead,omitempty"`
	L1FeeScalar       []byte `protobuf:"bytes,8,opt,name=l1_fee_scalar,json=l1FeeScalar,proto3" json:"l1_fee_scalar,omitempty"`
	BlobBaseFee       []byte `protobuf:"bytes,9,opt,name=blob_base_fee,json=blobBaseFee,proto3" json:"blob_base_fee,omitempty"`
	BaseFeeScalar     uint32 `protobuf:"varint,10,opt,name=base_fee_scalar,json=baseFeeScalar,proto3" json:"base_fee_scalar,omitempty"`
	BlobBaseFeeScalar uint32 `protobuf:"varint,11,opt,name=blob_base_fee_scalar,json=blobBaseFeeScalar,proto3" json:"blob_base_fee_scalar,omitempty"`
}

L1BlockInfo represents information about an L1 block and associated L2 data.

func (*L1BlockInfo) Descriptor

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

func (*L1BlockInfo) GetBaseFee

func (m *L1BlockInfo) GetBaseFee() []byte

func (*L1BlockInfo) GetBaseFeeScalar

func (m *L1BlockInfo) GetBaseFeeScalar() uint32

func (*L1BlockInfo) GetBatcherAddr

func (m *L1BlockInfo) GetBatcherAddr() []byte

func (*L1BlockInfo) GetBlobBaseFee

func (m *L1BlockInfo) GetBlobBaseFee() []byte

func (*L1BlockInfo) GetBlobBaseFeeScalar

func (m *L1BlockInfo) GetBlobBaseFeeScalar() uint32

func (*L1BlockInfo) GetBlockHash

func (m *L1BlockInfo) GetBlockHash() []byte

func (*L1BlockInfo) GetL1FeeOverhead

func (m *L1BlockInfo) GetL1FeeOverhead() []byte

func (*L1BlockInfo) GetL1FeeScalar

func (m *L1BlockInfo) GetL1FeeScalar() []byte

func (*L1BlockInfo) GetNumber

func (m *L1BlockInfo) GetNumber() uint64

func (*L1BlockInfo) GetSequenceNumber

func (m *L1BlockInfo) GetSequenceNumber() uint64

func (*L1BlockInfo) GetTime

func (m *L1BlockInfo) GetTime() uint64

func (*L1BlockInfo) Marshal

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

func (*L1BlockInfo) MarshalTo

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

func (*L1BlockInfo) MarshalToSizedBuffer

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

func (*L1BlockInfo) ProtoMessage

func (*L1BlockInfo) ProtoMessage()

func (*L1BlockInfo) Reset

func (m *L1BlockInfo) Reset()

func (*L1BlockInfo) Size

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

func (*L1BlockInfo) String

func (m *L1BlockInfo) String() string

func (*L1BlockInfo) Unmarshal

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

func (*L1BlockInfo) XXX_DiscardUnknown

func (m *L1BlockInfo) XXX_DiscardUnknown()

func (*L1BlockInfo) XXX_Marshal

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

func (*L1BlockInfo) XXX_Merge

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

func (*L1BlockInfo) XXX_Size

func (m *L1BlockInfo) XXX_Size() int

func (*L1BlockInfo) XXX_Unmarshal

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

type MsgApplyUserDeposit added in v0.1.6

type MsgApplyUserDeposit struct {
	// tx is the marshaled Ethereum Deposit tx.
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
}

MsgApplyUserDeposit is a eth deposit tx.

func (*MsgApplyUserDeposit) Descriptor added in v0.1.6

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

func (*MsgApplyUserDeposit) GetTx added in v0.1.6

func (m *MsgApplyUserDeposit) GetTx() []byte

func (*MsgApplyUserDeposit) Marshal added in v0.1.6

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

func (*MsgApplyUserDeposit) MarshalTo added in v0.1.6

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

func (*MsgApplyUserDeposit) MarshalToSizedBuffer added in v0.1.6

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

func (*MsgApplyUserDeposit) ProtoMessage added in v0.1.6

func (*MsgApplyUserDeposit) ProtoMessage()

func (*MsgApplyUserDeposit) Reset added in v0.1.6

func (m *MsgApplyUserDeposit) Reset()

func (*MsgApplyUserDeposit) Route added in v0.1.6

func (*MsgApplyUserDeposit) Route() string

func (*MsgApplyUserDeposit) Size added in v0.1.6

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

func (*MsgApplyUserDeposit) String added in v0.1.6

func (m *MsgApplyUserDeposit) String() string

func (*MsgApplyUserDeposit) Type added in v0.1.6

func (*MsgApplyUserDeposit) Type() string

func (*MsgApplyUserDeposit) Unmarshal added in v0.1.6

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

func (*MsgApplyUserDeposit) ValidateBasic added in v0.1.6

func (m *MsgApplyUserDeposit) ValidateBasic() error

func (*MsgApplyUserDeposit) XXX_DiscardUnknown added in v0.1.6

func (m *MsgApplyUserDeposit) XXX_DiscardUnknown()

func (*MsgApplyUserDeposit) XXX_Marshal added in v0.1.6

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

func (*MsgApplyUserDeposit) XXX_Merge added in v0.1.6

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

func (*MsgApplyUserDeposit) XXX_Size added in v0.1.6

func (m *MsgApplyUserDeposit) XXX_Size() int

func (*MsgApplyUserDeposit) XXX_Unmarshal added in v0.1.6

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

type MsgApplyUserDepositResponse added in v0.1.6

type MsgApplyUserDepositResponse struct {
}

MsgApplyUserDepositResponse defines the ApplyUserDeposit response type.

func (*MsgApplyUserDepositResponse) Descriptor added in v0.1.6

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

func (*MsgApplyUserDepositResponse) Marshal added in v0.1.6

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

func (*MsgApplyUserDepositResponse) MarshalTo added in v0.1.6

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

func (*MsgApplyUserDepositResponse) MarshalToSizedBuffer added in v0.1.6

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

func (*MsgApplyUserDepositResponse) ProtoMessage added in v0.1.6

func (*MsgApplyUserDepositResponse) ProtoMessage()

func (*MsgApplyUserDepositResponse) Reset added in v0.1.6

func (m *MsgApplyUserDepositResponse) Reset()

func (*MsgApplyUserDepositResponse) Size added in v0.1.6

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

func (*MsgApplyUserDepositResponse) String added in v0.1.6

func (m *MsgApplyUserDepositResponse) String() string

func (*MsgApplyUserDepositResponse) Unmarshal added in v0.1.6

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

func (*MsgApplyUserDepositResponse) XXX_DiscardUnknown added in v0.1.6

func (m *MsgApplyUserDepositResponse) XXX_DiscardUnknown()

func (*MsgApplyUserDepositResponse) XXX_Marshal added in v0.1.6

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

func (*MsgApplyUserDepositResponse) XXX_Merge added in v0.1.6

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

func (*MsgApplyUserDepositResponse) XXX_Size added in v0.1.6

func (m *MsgApplyUserDepositResponse) XXX_Size() int

func (*MsgApplyUserDepositResponse) XXX_Unmarshal added in v0.1.6

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

type MsgClient

type MsgClient interface {
	// SetL1Attributes sets the l1 attributes in the L2 state.
	SetL1Attributes(ctx context.Context, in *MsgSetL1Attributes, opts ...grpc.CallOption) (*MsgSetL1AttributesResponse, error)
	// ApplyUserDeposit defines a method for applying a user deposit tx.
	ApplyUserDeposit(ctx context.Context, in *MsgApplyUserDeposit, opts ...grpc.CallOption) (*MsgApplyUserDepositResponse, error)
	// InitiateWithdrawal defines a method for initiating an ETH withdrawal from L2 to L1.
	InitiateWithdrawal(ctx context.Context, in *MsgInitiateWithdrawal, opts ...grpc.CallOption) (*MsgInitiateWithdrawalResponse, error)
	// InitiateERC20Withdrawal defines a method for initiating an ERC-20 withdrawal from L2 to L1.
	InitiateERC20Withdrawal(ctx context.Context, in *MsgInitiateERC20Withdrawal, opts ...grpc.CallOption) (*MsgInitiateERC20WithdrawalResponse, error)
	// InitiateFeeWithdrawal defines a method for initiating a withdrawal of fees from L2 to the L1 fee recipient address.
	InitiateFeeWithdrawal(ctx context.Context, in *MsgInitiateFeeWithdrawal, opts ...grpc.CallOption) (*MsgInitiateFeeWithdrawalResponse, error)
	// UpdateParams defines a method for updating the x/rollup module parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgInitiateERC20Withdrawal added in v0.1.6

type MsgInitiateERC20Withdrawal struct {
	// The cosmos address of the user who wants to withdraw from L2.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// The ethereum address on L1 that the user wants to withdraw to.
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// The address of the ERC-20 token contract on L1.
	TokenAddress string `protobuf:"bytes,3,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
	// The amount of ERC-20 tokens that the user wants to withdraw.
	Value cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=value,proto3,customtype=cosmossdk.io/math.Int" json:"value"`
	// Minimum gas limit for executing the message on L1.
	GasLimit []byte `protobuf:"bytes,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// Extra data to forward to L1 target.
	ExtraData []byte `protobuf:"bytes,6,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`
}

MsgInitiateERC20Withdrawal defines the message for initiating an L2 ERC-20 withdrawal.

func (*MsgInitiateERC20Withdrawal) Descriptor added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) GetExtraData added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) GetExtraData() []byte

func (*MsgInitiateERC20Withdrawal) GetGasLimit added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) GetGasLimit() []byte

func (*MsgInitiateERC20Withdrawal) GetSender added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) GetSender() string

func (*MsgInitiateERC20Withdrawal) GetTarget added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) GetTarget() string

func (*MsgInitiateERC20Withdrawal) GetTokenAddress added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) GetTokenAddress() string

func (*MsgInitiateERC20Withdrawal) Marshal added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) MarshalTo added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) MarshalToSizedBuffer added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) ProtoMessage added in v0.1.6

func (*MsgInitiateERC20Withdrawal) ProtoMessage()

func (*MsgInitiateERC20Withdrawal) Reset added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) Reset()

func (*MsgInitiateERC20Withdrawal) Route added in v0.1.6

func (*MsgInitiateERC20Withdrawal) Size added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) String added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) String() string

func (*MsgInitiateERC20Withdrawal) Type added in v0.1.6

func (*MsgInitiateERC20Withdrawal) Unmarshal added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) ValidateBasic added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) ValidateBasic() error

func (*MsgInitiateERC20Withdrawal) XXX_DiscardUnknown added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) XXX_DiscardUnknown()

func (*MsgInitiateERC20Withdrawal) XXX_Marshal added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) XXX_Merge added in v0.1.6

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

func (*MsgInitiateERC20Withdrawal) XXX_Size added in v0.1.6

func (m *MsgInitiateERC20Withdrawal) XXX_Size() int

func (*MsgInitiateERC20Withdrawal) XXX_Unmarshal added in v0.1.6

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

type MsgInitiateERC20WithdrawalResponse added in v0.1.6

type MsgInitiateERC20WithdrawalResponse struct {
}

MsgInitiateERC20WithdrawalResponse defines the Msg/InitiateERC20Withdrawal response type.

func (*MsgInitiateERC20WithdrawalResponse) Descriptor added in v0.1.6

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

func (*MsgInitiateERC20WithdrawalResponse) Marshal added in v0.1.6

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

func (*MsgInitiateERC20WithdrawalResponse) MarshalTo added in v0.1.6

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

func (*MsgInitiateERC20WithdrawalResponse) MarshalToSizedBuffer added in v0.1.6

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

func (*MsgInitiateERC20WithdrawalResponse) ProtoMessage added in v0.1.6

func (*MsgInitiateERC20WithdrawalResponse) ProtoMessage()

func (*MsgInitiateERC20WithdrawalResponse) Reset added in v0.1.6

func (*MsgInitiateERC20WithdrawalResponse) Size added in v0.1.6

func (*MsgInitiateERC20WithdrawalResponse) String added in v0.1.6

func (*MsgInitiateERC20WithdrawalResponse) Unmarshal added in v0.1.6

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

func (*MsgInitiateERC20WithdrawalResponse) XXX_DiscardUnknown added in v0.1.6

func (m *MsgInitiateERC20WithdrawalResponse) XXX_DiscardUnknown()

func (*MsgInitiateERC20WithdrawalResponse) XXX_Marshal added in v0.1.6

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

func (*MsgInitiateERC20WithdrawalResponse) XXX_Merge added in v0.1.6

func (*MsgInitiateERC20WithdrawalResponse) XXX_Size added in v0.1.6

func (*MsgInitiateERC20WithdrawalResponse) XXX_Unmarshal added in v0.1.6

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

type MsgInitiateFeeWithdrawal added in v0.1.3

type MsgInitiateFeeWithdrawal struct {
	// The signer address of the user initiating the fee withdrawal.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgInitiateFeeWithdrawal defines the message for initiating an L2 fee withdrawal to the L1 fee recipient address.

func (*MsgInitiateFeeWithdrawal) Descriptor added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) GetSender added in v0.1.3

func (m *MsgInitiateFeeWithdrawal) GetSender() string

func (*MsgInitiateFeeWithdrawal) Marshal added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) MarshalTo added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) MarshalToSizedBuffer added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) ProtoMessage added in v0.1.3

func (*MsgInitiateFeeWithdrawal) ProtoMessage()

func (*MsgInitiateFeeWithdrawal) Reset added in v0.1.3

func (m *MsgInitiateFeeWithdrawal) Reset()

func (*MsgInitiateFeeWithdrawal) Size added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) String added in v0.1.3

func (m *MsgInitiateFeeWithdrawal) String() string

func (*MsgInitiateFeeWithdrawal) Unmarshal added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) XXX_DiscardUnknown added in v0.1.3

func (m *MsgInitiateFeeWithdrawal) XXX_DiscardUnknown()

func (*MsgInitiateFeeWithdrawal) XXX_Marshal added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) XXX_Merge added in v0.1.3

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

func (*MsgInitiateFeeWithdrawal) XXX_Size added in v0.1.3

func (m *MsgInitiateFeeWithdrawal) XXX_Size() int

func (*MsgInitiateFeeWithdrawal) XXX_Unmarshal added in v0.1.3

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

type MsgInitiateFeeWithdrawalResponse added in v0.1.3

type MsgInitiateFeeWithdrawalResponse struct {
}

MsgInitiateFeeWithdrawalResponse defines the Msg/InitiateFeeWithdrawal response type.

func (*MsgInitiateFeeWithdrawalResponse) Descriptor added in v0.1.3

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

func (*MsgInitiateFeeWithdrawalResponse) Marshal added in v0.1.3

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

func (*MsgInitiateFeeWithdrawalResponse) MarshalTo added in v0.1.3

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

func (*MsgInitiateFeeWithdrawalResponse) MarshalToSizedBuffer added in v0.1.3

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

func (*MsgInitiateFeeWithdrawalResponse) ProtoMessage added in v0.1.3

func (*MsgInitiateFeeWithdrawalResponse) ProtoMessage()

func (*MsgInitiateFeeWithdrawalResponse) Reset added in v0.1.3

func (*MsgInitiateFeeWithdrawalResponse) Size added in v0.1.3

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

func (*MsgInitiateFeeWithdrawalResponse) String added in v0.1.3

func (*MsgInitiateFeeWithdrawalResponse) Unmarshal added in v0.1.3

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

func (*MsgInitiateFeeWithdrawalResponse) XXX_DiscardUnknown added in v0.1.3

func (m *MsgInitiateFeeWithdrawalResponse) XXX_DiscardUnknown()

func (*MsgInitiateFeeWithdrawalResponse) XXX_Marshal added in v0.1.3

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

func (*MsgInitiateFeeWithdrawalResponse) XXX_Merge added in v0.1.3

func (*MsgInitiateFeeWithdrawalResponse) XXX_Size added in v0.1.3

func (m *MsgInitiateFeeWithdrawalResponse) XXX_Size() int

func (*MsgInitiateFeeWithdrawalResponse) XXX_Unmarshal added in v0.1.3

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

type MsgInitiateWithdrawal

type MsgInitiateWithdrawal struct {
	// The cosmos address of the user who wants to withdraw from L2.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// The ethereum address on L1 that the user wants to withdraw to.
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// The amount of ETH (in wei) that the user wants to withdraw.
	Value cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=value,proto3,customtype=cosmossdk.io/math.Int" json:"value"`
	// Minimum gas limit for executing the message on L1.
	GasLimit []byte `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// Data to forward to L1 target.
	Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
}

MsgInitiateWithdrawal defines the message for initiating an L2 ETH withdrawal.

func (*MsgInitiateWithdrawal) Descriptor

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

func (*MsgInitiateWithdrawal) GetData

func (m *MsgInitiateWithdrawal) GetData() []byte

func (*MsgInitiateWithdrawal) GetGasLimit

func (m *MsgInitiateWithdrawal) GetGasLimit() []byte

func (*MsgInitiateWithdrawal) GetSender

func (m *MsgInitiateWithdrawal) GetSender() string

func (*MsgInitiateWithdrawal) GetTarget

func (m *MsgInitiateWithdrawal) GetTarget() string

func (*MsgInitiateWithdrawal) Marshal

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

func (*MsgInitiateWithdrawal) MarshalTo

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

func (*MsgInitiateWithdrawal) MarshalToSizedBuffer

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

func (*MsgInitiateWithdrawal) ProtoMessage

func (*MsgInitiateWithdrawal) ProtoMessage()

func (*MsgInitiateWithdrawal) Reset

func (m *MsgInitiateWithdrawal) Reset()

func (*MsgInitiateWithdrawal) Route

func (*MsgInitiateWithdrawal) Route() string

func (*MsgInitiateWithdrawal) Size

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

func (*MsgInitiateWithdrawal) String

func (m *MsgInitiateWithdrawal) String() string

func (*MsgInitiateWithdrawal) Type

func (*MsgInitiateWithdrawal) Type() string

func (*MsgInitiateWithdrawal) Unmarshal

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

func (*MsgInitiateWithdrawal) ValidateBasic

func (m *MsgInitiateWithdrawal) ValidateBasic() error

func (*MsgInitiateWithdrawal) XXX_DiscardUnknown

func (m *MsgInitiateWithdrawal) XXX_DiscardUnknown()

func (*MsgInitiateWithdrawal) XXX_Marshal

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

func (*MsgInitiateWithdrawal) XXX_Merge

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

func (*MsgInitiateWithdrawal) XXX_Size

func (m *MsgInitiateWithdrawal) XXX_Size() int

func (*MsgInitiateWithdrawal) XXX_Unmarshal

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

type MsgInitiateWithdrawalResponse

type MsgInitiateWithdrawalResponse struct {
}

MsgInitiateWithdrawalResponse defines the Msg/InitiateWithdrawal response type.

func (*MsgInitiateWithdrawalResponse) Descriptor

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

func (*MsgInitiateWithdrawalResponse) Marshal

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

func (*MsgInitiateWithdrawalResponse) MarshalTo

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

func (*MsgInitiateWithdrawalResponse) MarshalToSizedBuffer

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

func (*MsgInitiateWithdrawalResponse) ProtoMessage

func (*MsgInitiateWithdrawalResponse) ProtoMessage()

func (*MsgInitiateWithdrawalResponse) Reset

func (m *MsgInitiateWithdrawalResponse) Reset()

func (*MsgInitiateWithdrawalResponse) Size

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

func (*MsgInitiateWithdrawalResponse) String

func (*MsgInitiateWithdrawalResponse) Unmarshal

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

func (*MsgInitiateWithdrawalResponse) XXX_DiscardUnknown

func (m *MsgInitiateWithdrawalResponse) XXX_DiscardUnknown()

func (*MsgInitiateWithdrawalResponse) XXX_Marshal

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

func (*MsgInitiateWithdrawalResponse) XXX_Merge

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

func (*MsgInitiateWithdrawalResponse) XXX_Size

func (m *MsgInitiateWithdrawalResponse) XXX_Size() int

func (*MsgInitiateWithdrawalResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// SetL1Attributes sets the l1 attributes in the L2 state.
	SetL1Attributes(context.Context, *MsgSetL1Attributes) (*MsgSetL1AttributesResponse, error)
	// ApplyUserDeposit defines a method for applying a user deposit tx.
	ApplyUserDeposit(context.Context, *MsgApplyUserDeposit) (*MsgApplyUserDepositResponse, error)
	// InitiateWithdrawal defines a method for initiating an ETH withdrawal from L2 to L1.
	InitiateWithdrawal(context.Context, *MsgInitiateWithdrawal) (*MsgInitiateWithdrawalResponse, error)
	// InitiateERC20Withdrawal defines a method for initiating an ERC-20 withdrawal from L2 to L1.
	InitiateERC20Withdrawal(context.Context, *MsgInitiateERC20Withdrawal) (*MsgInitiateERC20WithdrawalResponse, error)
	// InitiateFeeWithdrawal defines a method for initiating a withdrawal of fees from L2 to the L1 fee recipient address.
	InitiateFeeWithdrawal(context.Context, *MsgInitiateFeeWithdrawal) (*MsgInitiateFeeWithdrawalResponse, error)
	// UpdateParams defines a method for updating the x/rollup module parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetL1Attributes added in v0.1.6

type MsgSetL1Attributes struct {
	L1BlockInfo *L1BlockInfo `protobuf:"bytes,1,opt,name=l1_block_info,json=l1BlockInfo,proto3" json:"l1_block_info,omitempty"`
	EthTx       []byte       `protobuf:"bytes,2,opt,name=eth_tx,json=ethTx,proto3" json:"eth_tx,omitempty"`
}

MsgSetL1Attributes is the l1 attributes message.

func (*MsgSetL1Attributes) Descriptor added in v0.1.6

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

func (*MsgSetL1Attributes) GetEthTx added in v0.1.6

func (m *MsgSetL1Attributes) GetEthTx() []byte

func (*MsgSetL1Attributes) GetL1BlockInfo added in v0.1.6

func (m *MsgSetL1Attributes) GetL1BlockInfo() *L1BlockInfo

func (*MsgSetL1Attributes) Marshal added in v0.1.6

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

func (*MsgSetL1Attributes) MarshalTo added in v0.1.6

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

func (*MsgSetL1Attributes) MarshalToSizedBuffer added in v0.1.6

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

func (*MsgSetL1Attributes) ProtoMessage added in v0.1.6

func (*MsgSetL1Attributes) ProtoMessage()

func (*MsgSetL1Attributes) Reset added in v0.1.6

func (m *MsgSetL1Attributes) Reset()

func (*MsgSetL1Attributes) Route added in v0.1.6

func (*MsgSetL1Attributes) Route() string

func (*MsgSetL1Attributes) Size added in v0.1.6

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

func (*MsgSetL1Attributes) String added in v0.1.6

func (m *MsgSetL1Attributes) String() string

func (*MsgSetL1Attributes) Type added in v0.1.6

func (*MsgSetL1Attributes) Type() string

func (*MsgSetL1Attributes) Unmarshal added in v0.1.6

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

func (*MsgSetL1Attributes) ValidateBasic added in v0.1.6

func (m *MsgSetL1Attributes) ValidateBasic() error

func (*MsgSetL1Attributes) XXX_DiscardUnknown added in v0.1.6

func (m *MsgSetL1Attributes) XXX_DiscardUnknown()

func (*MsgSetL1Attributes) XXX_Marshal added in v0.1.6

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

func (*MsgSetL1Attributes) XXX_Merge added in v0.1.6

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

func (*MsgSetL1Attributes) XXX_Size added in v0.1.6

func (m *MsgSetL1Attributes) XXX_Size() int

func (*MsgSetL1Attributes) XXX_Unmarshal added in v0.1.6

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

type MsgSetL1AttributesResponse added in v0.1.6

type MsgSetL1AttributesResponse struct {
}

MsgSetL1AttributesResponse defines the SetL1Attributes response type.

func (*MsgSetL1AttributesResponse) Descriptor added in v0.1.6

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

func (*MsgSetL1AttributesResponse) Marshal added in v0.1.6

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

func (*MsgSetL1AttributesResponse) MarshalTo added in v0.1.6

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

func (*MsgSetL1AttributesResponse) MarshalToSizedBuffer added in v0.1.6

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

func (*MsgSetL1AttributesResponse) ProtoMessage added in v0.1.6

func (*MsgSetL1AttributesResponse) ProtoMessage()

func (*MsgSetL1AttributesResponse) Reset added in v0.1.6

func (m *MsgSetL1AttributesResponse) Reset()

func (*MsgSetL1AttributesResponse) Size added in v0.1.6

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

func (*MsgSetL1AttributesResponse) String added in v0.1.6

func (m *MsgSetL1AttributesResponse) String() string

func (*MsgSetL1AttributesResponse) Unmarshal added in v0.1.6

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

func (*MsgSetL1AttributesResponse) XXX_DiscardUnknown added in v0.1.6

func (m *MsgSetL1AttributesResponse) XXX_DiscardUnknown()

func (*MsgSetL1AttributesResponse) XXX_Marshal added in v0.1.6

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

func (*MsgSetL1AttributesResponse) XXX_Merge added in v0.1.6

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

func (*MsgSetL1AttributesResponse) XXX_Size added in v0.1.6

func (m *MsgSetL1AttributesResponse) XXX_Size() int

func (*MsgSetL1AttributesResponse) XXX_Unmarshal added in v0.1.6

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

type MsgUpdateParams added in v0.1.5

type MsgUpdateParams struct {
	// authority is the address of the admin account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/rollup parameters to update.
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams defines a Msg for updating the x/rollup module parameters.

func (*MsgUpdateParams) Descriptor added in v0.1.5

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

func (*MsgUpdateParams) GetAuthority added in v0.1.5

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.1.5

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal added in v0.1.5

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

func (*MsgUpdateParams) MarshalTo added in v0.1.5

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgUpdateParams) ProtoMessage added in v0.1.5

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.1.5

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.1.5

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

func (*MsgUpdateParams) String added in v0.1.5

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.1.5

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

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.1.5

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.1.5

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

func (*MsgUpdateParams) XXX_Merge added in v0.1.5

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

func (*MsgUpdateParams) XXX_Size added in v0.1.5

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.1.5

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

type MsgUpdateParamsResponse added in v0.1.5

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the Msg/MsgUpdateParams response type.

func (*MsgUpdateParamsResponse) Descriptor added in v0.1.5

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

func (*MsgUpdateParamsResponse) Marshal added in v0.1.5

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

func (*MsgUpdateParamsResponse) MarshalTo added in v0.1.5

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.1.5

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.1.5

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.1.5

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

func (*MsgUpdateParamsResponse) String added in v0.1.5

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.1.5

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.1.5

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.1.5

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.1.5

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.1.5

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.1.5

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

type Params added in v0.1.3

type Params struct {
	// L1 address to forward the L2 fees to.
	L1FeeRecipient string `protobuf:"bytes,1,opt,name=l1_fee_recipient,json=l1FeeRecipient,proto3" json:"l1_fee_recipient,omitempty"`
	// L1 address of the cross-domain messenger contract.
	L1CrossDomainMessenger string `` /* 131-byte string literal not displayed */
	// L1 address of the standard bridge contract.
	L1StandardBridge string `protobuf:"bytes,3,opt,name=l1_standard_bridge,json=l1StandardBridge,proto3" json:"l1_standard_bridge,omitempty"`
	// Minimum amount of L2 fees that the FeeCollector account must have before they can be withdrawn.
	MinFeeWithdrawalAmount uint64 `` /* 132-byte string literal not displayed */
	// L1 gas limit for withdrawing fees to the L1 recipient address.
	FeeWithdrawalGasLimit uint64 `` /* 129-byte string literal not displayed */
}

Params defines the genesis parameters for the rollup module.

func DefaultParams added in v0.1.3

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func (*Params) Descriptor added in v0.1.3

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

func (*Params) GetFeeWithdrawalGasLimit added in v0.1.3

func (m *Params) GetFeeWithdrawalGasLimit() uint64

func (*Params) GetL1CrossDomainMessenger added in v0.1.3

func (m *Params) GetL1CrossDomainMessenger() string

func (*Params) GetL1FeeRecipient added in v0.1.3

func (m *Params) GetL1FeeRecipient() string

func (*Params) GetL1StandardBridge added in v0.1.6

func (m *Params) GetL1StandardBridge() string

func (*Params) GetMinFeeWithdrawalAmount added in v0.1.3

func (m *Params) GetMinFeeWithdrawalAmount() uint64

func (*Params) Marshal added in v0.1.3

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

func (*Params) MarshalTo added in v0.1.3

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

func (*Params) MarshalToSizedBuffer added in v0.1.3

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

func (*Params) ProtoMessage added in v0.1.3

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.1.3

func (m *Params) Reset()

func (*Params) Size added in v0.1.3

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

func (*Params) String added in v0.1.3

func (m *Params) String() string

func (*Params) Unmarshal added in v0.1.3

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

func (*Params) Validate added in v0.1.3

func (p *Params) Validate() error

Validate checks that the parameters have valid values.

func (*Params) XXX_DiscardUnknown added in v0.1.3

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.1.3

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

func (*Params) XXX_Merge added in v0.1.3

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

func (*Params) XXX_Size added in v0.1.3

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.1.3

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

type QueryClient added in v0.1.3

type QueryClient interface {
	// Params returns all rollup module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// L1BlockInfo returns the block info derived from L1.
	L1BlockInfo(ctx context.Context, in *QueryL1BlockInfoRequest, opts ...grpc.CallOption) (*QueryL1BlockInfoResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient added in v0.1.3

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryL1BlockInfoRequest added in v0.1.3

type QueryL1BlockInfoRequest struct {
}

QueryL1BlockInfoRequest is the request type for the Query/L1BlockInfo RPC method.

func (*QueryL1BlockInfoRequest) Descriptor added in v0.1.3

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

func (*QueryL1BlockInfoRequest) Marshal added in v0.1.3

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

func (*QueryL1BlockInfoRequest) MarshalTo added in v0.1.3

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

func (*QueryL1BlockInfoRequest) MarshalToSizedBuffer added in v0.1.3

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

func (*QueryL1BlockInfoRequest) ProtoMessage added in v0.1.3

func (*QueryL1BlockInfoRequest) ProtoMessage()

func (*QueryL1BlockInfoRequest) Reset added in v0.1.3

func (m *QueryL1BlockInfoRequest) Reset()

func (*QueryL1BlockInfoRequest) Size added in v0.1.3

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

func (*QueryL1BlockInfoRequest) String added in v0.1.3

func (m *QueryL1BlockInfoRequest) String() string

func (*QueryL1BlockInfoRequest) Unmarshal added in v0.1.3

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

func (*QueryL1BlockInfoRequest) XXX_DiscardUnknown added in v0.1.3

func (m *QueryL1BlockInfoRequest) XXX_DiscardUnknown()

func (*QueryL1BlockInfoRequest) XXX_Marshal added in v0.1.3

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

func (*QueryL1BlockInfoRequest) XXX_Merge added in v0.1.3

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

func (*QueryL1BlockInfoRequest) XXX_Size added in v0.1.3

func (m *QueryL1BlockInfoRequest) XXX_Size() int

func (*QueryL1BlockInfoRequest) XXX_Unmarshal added in v0.1.3

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

type QueryL1BlockInfoResponse added in v0.1.3

type QueryL1BlockInfoResponse struct {
	// l1_block_info holds the block info derived from L1.
	L1BlockInfo L1BlockInfo `protobuf:"bytes,1,opt,name=l1_block_info,json=l1BlockInfo,proto3" json:"l1_block_info"`
}

QueryL1BlockInfoResponse is response type for the Query/L1BlockInfo RPC method.

func (*QueryL1BlockInfoResponse) Descriptor added in v0.1.3

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

func (*QueryL1BlockInfoResponse) GetL1BlockInfo added in v0.1.3

func (m *QueryL1BlockInfoResponse) GetL1BlockInfo() L1BlockInfo

func (*QueryL1BlockInfoResponse) Marshal added in v0.1.3

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

func (*QueryL1BlockInfoResponse) MarshalTo added in v0.1.3

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

func (*QueryL1BlockInfoResponse) MarshalToSizedBuffer added in v0.1.3

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

func (*QueryL1BlockInfoResponse) ProtoMessage added in v0.1.3

func (*QueryL1BlockInfoResponse) ProtoMessage()

func (*QueryL1BlockInfoResponse) Reset added in v0.1.3

func (m *QueryL1BlockInfoResponse) Reset()

func (*QueryL1BlockInfoResponse) Size added in v0.1.3

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

func (*QueryL1BlockInfoResponse) String added in v0.1.3

func (m *QueryL1BlockInfoResponse) String() string

func (*QueryL1BlockInfoResponse) Unmarshal added in v0.1.3

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

func (*QueryL1BlockInfoResponse) XXX_DiscardUnknown added in v0.1.3

func (m *QueryL1BlockInfoResponse) XXX_DiscardUnknown()

func (*QueryL1BlockInfoResponse) XXX_Marshal added in v0.1.3

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

func (*QueryL1BlockInfoResponse) XXX_Merge added in v0.1.3

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

func (*QueryL1BlockInfoResponse) XXX_Size added in v0.1.3

func (m *QueryL1BlockInfoResponse) XXX_Size() int

func (*QueryL1BlockInfoResponse) XXX_Unmarshal added in v0.1.3

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

type QueryParamsRequest added in v0.1.3

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor added in v0.1.3

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

func (*QueryParamsRequest) Marshal added in v0.1.3

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

func (*QueryParamsRequest) MarshalTo added in v0.1.3

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.1.3

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

func (*QueryParamsRequest) ProtoMessage added in v0.1.3

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.1.3

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.1.3

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

func (*QueryParamsRequest) String added in v0.1.3

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.1.3

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.1.3

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.1.3

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

func (*QueryParamsRequest) XXX_Merge added in v0.1.3

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

func (*QueryParamsRequest) XXX_Size added in v0.1.3

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.1.3

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

type QueryParamsResponse added in v0.1.3

type QueryParamsResponse struct {
	// params holds all the parameters for the rollup module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor added in v0.1.3

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

func (*QueryParamsResponse) GetParams added in v0.1.3

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.1.3

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

func (*QueryParamsResponse) MarshalTo added in v0.1.3

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.1.3

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

func (*QueryParamsResponse) ProtoMessage added in v0.1.3

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.1.3

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.1.3

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

func (*QueryParamsResponse) String added in v0.1.3

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.1.3

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.1.3

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.1.3

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

func (*QueryParamsResponse) XXX_Merge added in v0.1.3

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

func (*QueryParamsResponse) XXX_Size added in v0.1.3

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.1.3

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

type QueryServer added in v0.1.3

type QueryServer interface {
	// Params returns all rollup module parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// L1BlockInfo returns the block info derived from L1.
	L1BlockInfo(context.Context, *QueryL1BlockInfoRequest) (*QueryL1BlockInfoResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ApplyUserDeposit added in v0.1.6

func (*UnimplementedMsgServer) InitiateERC20Withdrawal added in v0.1.6

func (*UnimplementedMsgServer) InitiateFeeWithdrawal added in v0.1.3

func (*UnimplementedMsgServer) InitiateWithdrawal

func (*UnimplementedMsgServer) SetL1Attributes added in v0.1.6

func (*UnimplementedMsgServer) UpdateParams added in v0.1.5

type UnimplementedQueryServer added in v0.1.3

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) L1BlockInfo added in v0.1.3

func (*UnimplementedQueryServer) Params added in v0.1.3

Jump to

Keyboard shortcuts

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