Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func Nat(num float64) (uint64, error)
- func NewCoreEvalProposal(title, description string, evals []CoreEval) govv1beta1.Content
- func NewMailbox() *vstoragetypes.Data
- func ParamKeyTable() paramtypes.KeyTable
- func QueueSizeEntry(qs []QueueSize, key string) (int32, bool)
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type CoreEval
- func (*CoreEval) Descriptor() ([]byte, []int)
- func (m *CoreEval) GetJsCode() string
- func (m *CoreEval) GetJsonPermits() string
- func (m *CoreEval) Marshal() (dAtA []byte, err error)
- func (m *CoreEval) MarshalTo(dAtA []byte) (int, error)
- func (m *CoreEval) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CoreEval) ProtoMessage()
- func (m *CoreEval) Reset()
- func (m *CoreEval) Size() (n int)
- func (m *CoreEval) String() string
- func (m *CoreEval) Unmarshal(dAtA []byte) error
- func (ce CoreEval) ValidateBasic() error
- func (m *CoreEval) XXX_DiscardUnknown()
- func (m *CoreEval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoreEval) XXX_Merge(src proto.Message)
- func (m *CoreEval) XXX_Size() int
- func (m *CoreEval) XXX_Unmarshal(b []byte) error
- type CoreEvalProposal
- func (*CoreEvalProposal) Descriptor() ([]byte, []int)
- func (cep *CoreEvalProposal) GetDescription() string
- func (cep *CoreEvalProposal) GetTitle() string
- func (m *CoreEvalProposal) Marshal() (dAtA []byte, err error)
- func (m *CoreEvalProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *CoreEvalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cep *CoreEvalProposal) ProposalRoute() string
- func (cep *CoreEvalProposal) ProposalType() string
- func (*CoreEvalProposal) ProtoMessage()
- func (m *CoreEvalProposal) Reset()
- func (m *CoreEvalProposal) Size() (n int)
- func (m *CoreEvalProposal) String() string
- func (m *CoreEvalProposal) Unmarshal(dAtA []byte) error
- func (cep *CoreEvalProposal) ValidateBasic() error
- func (m *CoreEvalProposal) XXX_DiscardUnknown()
- func (m *CoreEvalProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoreEvalProposal) XXX_Merge(src proto.Message)
- func (m *CoreEvalProposal) XXX_Size() int
- func (m *CoreEvalProposal) XXX_Unmarshal(b []byte) error
- type Egress
- func (*Egress) Descriptor() ([]byte, []int)
- func (m *Egress) GetNickname() string
- func (m *Egress) GetPeer() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Egress) GetPowerFlags() []string
- func (m *Egress) Marshal() (dAtA []byte, err error)
- func (m *Egress) MarshalTo(dAtA []byte) (int, error)
- func (m *Egress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Egress) ProtoMessage()
- func (m *Egress) Reset()
- func (m *Egress) Size() (n int)
- func (m *Egress) String() string
- func (m *Egress) Unmarshal(dAtA []byte) error
- func (m *Egress) XXX_DiscardUnknown()
- func (m *Egress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Egress) XXX_Merge(src proto.Message)
- func (m *Egress) XXX_Size() int
- func (m *Egress) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetState() State
- func (m *GenesisState) GetSwingStoreExportData() []*SwingStoreExportDataEntry
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Messages
- type MsgClient
- type MsgDeliverInbound
- func (msg MsgDeliverInbound) CheckAdmissibility(ctx sdk.Context, data interface{}) error
- func (*MsgDeliverInbound) Descriptor() ([]byte, []int)
- func (m *MsgDeliverInbound) GetAck() uint64
- func (msg MsgDeliverInbound) GetInboundMsgCount() int32
- func (m *MsgDeliverInbound) GetMessages() []string
- func (m *MsgDeliverInbound) GetNums() []uint64
- func (msg MsgDeliverInbound) GetSignBytes() []byte
- func (msg MsgDeliverInbound) GetSigners() []sdk.AccAddress
- func (m *MsgDeliverInbound) GetSubmitter() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgDeliverInbound) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
- func (m *MsgDeliverInbound) Marshal() (dAtA []byte, err error)
- func (m *MsgDeliverInbound) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeliverInbound) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeliverInbound) ProtoMessage()
- func (m *MsgDeliverInbound) Reset()
- func (msg MsgDeliverInbound) Route() string
- func (m *MsgDeliverInbound) Size() (n int)
- func (m *MsgDeliverInbound) String() string
- func (msg MsgDeliverInbound) Type() string
- func (m *MsgDeliverInbound) Unmarshal(dAtA []byte) error
- func (msg MsgDeliverInbound) ValidateBasic() error
- func (m *MsgDeliverInbound) XXX_DiscardUnknown()
- func (m *MsgDeliverInbound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeliverInbound) XXX_Merge(src proto.Message)
- func (m *MsgDeliverInbound) XXX_Size() int
- func (m *MsgDeliverInbound) XXX_Unmarshal(b []byte) error
- type MsgDeliverInboundResponse
- func (*MsgDeliverInboundResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeliverInboundResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeliverInboundResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeliverInboundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeliverInboundResponse) ProtoMessage()
- func (m *MsgDeliverInboundResponse) Reset()
- func (m *MsgDeliverInboundResponse) Size() (n int)
- func (m *MsgDeliverInboundResponse) String() string
- func (m *MsgDeliverInboundResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeliverInboundResponse) XXX_DiscardUnknown()
- func (m *MsgDeliverInboundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeliverInboundResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeliverInboundResponse) XXX_Size() int
- func (m *MsgDeliverInboundResponse) XXX_Unmarshal(b []byte) error
- type MsgInstallBundle
- func (msg MsgInstallBundle) CheckAdmissibility(ctx sdk.Context, data interface{}) error
- func (msg *MsgInstallBundle) Compress() error
- func (*MsgInstallBundle) Descriptor() ([]byte, []int)
- func (msg MsgInstallBundle) ExpectedUncompressedSize() uint64
- func (m *MsgInstallBundle) GetBundle() string
- func (m *MsgInstallBundle) GetCompressedBundle() []byte
- func (msg MsgInstallBundle) GetInboundMsgCount() int32
- func (msg MsgInstallBundle) GetSigners() []sdk.AccAddress
- func (m *MsgInstallBundle) GetSubmitter() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgInstallBundle) GetUncompressedSize() int64
- func (msg MsgInstallBundle) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
- func (m *MsgInstallBundle) Marshal() (dAtA []byte, err error)
- func (m *MsgInstallBundle) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstallBundle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstallBundle) ProtoMessage()
- func (m *MsgInstallBundle) Reset()
- func (msg MsgInstallBundle) Route() string
- func (m *MsgInstallBundle) Size() (n int)
- func (m *MsgInstallBundle) String() string
- func (msg MsgInstallBundle) Type() string
- func (msg *MsgInstallBundle) Uncompress() error
- func (m *MsgInstallBundle) Unmarshal(dAtA []byte) error
- func (msg MsgInstallBundle) ValidateBasic() error
- func (m *MsgInstallBundle) XXX_DiscardUnknown()
- func (m *MsgInstallBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstallBundle) XXX_Merge(src proto.Message)
- func (m *MsgInstallBundle) XXX_Size() int
- func (m *MsgInstallBundle) XXX_Unmarshal(b []byte) error
- type MsgInstallBundleResponse
- func (*MsgInstallBundleResponse) Descriptor() ([]byte, []int)
- func (m *MsgInstallBundleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInstallBundleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstallBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstallBundleResponse) ProtoMessage()
- func (m *MsgInstallBundleResponse) Reset()
- func (m *MsgInstallBundleResponse) Size() (n int)
- func (m *MsgInstallBundleResponse) String() string
- func (m *MsgInstallBundleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInstallBundleResponse) XXX_DiscardUnknown()
- func (m *MsgInstallBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstallBundleResponse) XXX_Merge(src proto.Message)
- func (m *MsgInstallBundleResponse) XXX_Size() int
- func (m *MsgInstallBundleResponse) XXX_Unmarshal(b []byte) error
- type MsgProvision
- func (msg MsgProvision) CheckAdmissibility(ctx sdk.Context, data interface{}) error
- func (*MsgProvision) Descriptor() ([]byte, []int)
- func (m *MsgProvision) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgProvision) GetInboundMsgCount() int32
- func (m *MsgProvision) GetNickname() string
- func (m *MsgProvision) GetPowerFlags() []string
- func (msg MsgProvision) GetSignBytes() []byte
- func (msg MsgProvision) GetSigners() []sdk.AccAddress
- func (m *MsgProvision) GetSubmitter() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgProvision) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
- func (m *MsgProvision) Marshal() (dAtA []byte, err error)
- func (m *MsgProvision) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProvision) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProvision) ProtoMessage()
- func (m *MsgProvision) Reset()
- func (msg MsgProvision) Route() string
- func (m *MsgProvision) Size() (n int)
- func (m *MsgProvision) String() string
- func (msg MsgProvision) Type() string
- func (m *MsgProvision) Unmarshal(dAtA []byte) error
- func (msg MsgProvision) ValidateBasic() error
- func (m *MsgProvision) XXX_DiscardUnknown()
- func (m *MsgProvision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProvision) XXX_Merge(src proto.Message)
- func (m *MsgProvision) XXX_Size() int
- func (m *MsgProvision) XXX_Unmarshal(b []byte) error
- type MsgProvisionResponse
- func (*MsgProvisionResponse) Descriptor() ([]byte, []int)
- func (m *MsgProvisionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgProvisionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProvisionResponse) ProtoMessage()
- func (m *MsgProvisionResponse) Reset()
- func (m *MsgProvisionResponse) Size() (n int)
- func (m *MsgProvisionResponse) String() string
- func (m *MsgProvisionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgProvisionResponse) XXX_DiscardUnknown()
- func (m *MsgProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProvisionResponse) XXX_Merge(src proto.Message)
- func (m *MsgProvisionResponse) XXX_Size() int
- func (m *MsgProvisionResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgWalletAction
- func (msg MsgWalletAction) CheckAdmissibility(ctx sdk.Context, data interface{}) error
- func (*MsgWalletAction) Descriptor() ([]byte, []int)
- func (m *MsgWalletAction) GetAction() string
- func (msg MsgWalletAction) GetInboundMsgCount() int32
- func (m *MsgWalletAction) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgWalletAction) GetSignBytes() []byte
- func (msg MsgWalletAction) GetSigners() []sdk.AccAddress
- func (msg MsgWalletAction) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
- func (m *MsgWalletAction) Marshal() (dAtA []byte, err error)
- func (m *MsgWalletAction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWalletAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWalletAction) ProtoMessage()
- func (m *MsgWalletAction) Reset()
- func (msg MsgWalletAction) Route() string
- func (m *MsgWalletAction) Size() (n int)
- func (m *MsgWalletAction) String() string
- func (msg MsgWalletAction) Type() string
- func (m *MsgWalletAction) Unmarshal(dAtA []byte) error
- func (msg MsgWalletAction) ValidateBasic() error
- func (m *MsgWalletAction) XXX_DiscardUnknown()
- func (m *MsgWalletAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWalletAction) XXX_Merge(src proto.Message)
- func (m *MsgWalletAction) XXX_Size() int
- func (m *MsgWalletAction) XXX_Unmarshal(b []byte) error
- type MsgWalletActionResponse
- func (*MsgWalletActionResponse) Descriptor() ([]byte, []int)
- func (m *MsgWalletActionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWalletActionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWalletActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWalletActionResponse) ProtoMessage()
- func (m *MsgWalletActionResponse) Reset()
- func (m *MsgWalletActionResponse) Size() (n int)
- func (m *MsgWalletActionResponse) String() string
- func (m *MsgWalletActionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWalletActionResponse) XXX_DiscardUnknown()
- func (m *MsgWalletActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWalletActionResponse) XXX_Merge(src proto.Message)
- func (m *MsgWalletActionResponse) XXX_Size() int
- func (m *MsgWalletActionResponse) XXX_Unmarshal(b []byte) error
- type MsgWalletSpendAction
- func (msg MsgWalletSpendAction) CheckAdmissibility(ctx sdk.Context, data interface{}) error
- func (*MsgWalletSpendAction) Descriptor() ([]byte, []int)
- func (msg MsgWalletSpendAction) GetInboundMsgCount() int32
- func (m *MsgWalletSpendAction) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgWalletSpendAction) GetSignBytes() []byte
- func (msg MsgWalletSpendAction) GetSigners() []sdk.AccAddress
- func (m *MsgWalletSpendAction) GetSpendAction() string
- func (msg MsgWalletSpendAction) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
- func (m *MsgWalletSpendAction) Marshal() (dAtA []byte, err error)
- func (m *MsgWalletSpendAction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWalletSpendAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWalletSpendAction) ProtoMessage()
- func (m *MsgWalletSpendAction) Reset()
- func (msg MsgWalletSpendAction) Route() string
- func (m *MsgWalletSpendAction) Size() (n int)
- func (m *MsgWalletSpendAction) String() string
- func (msg MsgWalletSpendAction) Type() string
- func (m *MsgWalletSpendAction) Unmarshal(dAtA []byte) error
- func (msg MsgWalletSpendAction) ValidateBasic() error
- func (m *MsgWalletSpendAction) XXX_DiscardUnknown()
- func (m *MsgWalletSpendAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWalletSpendAction) XXX_Merge(src proto.Message)
- func (m *MsgWalletSpendAction) XXX_Size() int
- func (m *MsgWalletSpendAction) XXX_Unmarshal(b []byte) error
- type MsgWalletSpendActionResponse
- func (*MsgWalletSpendActionResponse) Descriptor() ([]byte, []int)
- func (m *MsgWalletSpendActionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWalletSpendActionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWalletSpendActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWalletSpendActionResponse) ProtoMessage()
- func (m *MsgWalletSpendActionResponse) Reset()
- func (m *MsgWalletSpendActionResponse) Size() (n int)
- func (m *MsgWalletSpendActionResponse) String() string
- func (m *MsgWalletSpendActionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWalletSpendActionResponse) XXX_DiscardUnknown()
- func (m *MsgWalletSpendActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWalletSpendActionResponse) XXX_Merge(src proto.Message)
- func (m *MsgWalletSpendActionResponse) XXX_Size() int
- func (m *MsgWalletSpendActionResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetBeansPerUnit() []StringBeans
- func (m *Params) GetBootstrapVatConfig() string
- func (m *Params) GetFeeUnitPrice() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Params) GetPowerFlagFees() []PowerFlagFee
- func (m *Params) GetQueueMax() []QueueSize
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) ValidateBasic() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PowerFlagFee
- func (*PowerFlagFee) Descriptor() ([]byte, []int)
- func (this *PowerFlagFee) Equal(that interface{}) bool
- func (m *PowerFlagFee) GetFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *PowerFlagFee) GetPowerFlag() string
- func (m *PowerFlagFee) Marshal() (dAtA []byte, err error)
- func (m *PowerFlagFee) MarshalTo(dAtA []byte) (int, error)
- func (m *PowerFlagFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PowerFlagFee) ProtoMessage()
- func (m *PowerFlagFee) Reset()
- func (m *PowerFlagFee) Size() (n int)
- func (m *PowerFlagFee) String() string
- func (m *PowerFlagFee) Unmarshal(dAtA []byte) error
- func (m *PowerFlagFee) XXX_DiscardUnknown()
- func (m *PowerFlagFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PowerFlagFee) XXX_Merge(src proto.Message)
- func (m *PowerFlagFee) XXX_Size() int
- func (m *PowerFlagFee) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryEgressRequest
- func (*QueryEgressRequest) Descriptor() ([]byte, []int)
- func (m *QueryEgressRequest) GetPeer() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryEgressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEgressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEgressRequest) ProtoMessage()
- func (m *QueryEgressRequest) Reset()
- func (m *QueryEgressRequest) Size() (n int)
- func (m *QueryEgressRequest) String() string
- func (m *QueryEgressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEgressRequest) XXX_DiscardUnknown()
- func (m *QueryEgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEgressRequest) XXX_Merge(src proto.Message)
- func (m *QueryEgressRequest) XXX_Size() int
- func (m *QueryEgressRequest) XXX_Unmarshal(b []byte) error
- type QueryEgressResponse
- func (*QueryEgressResponse) Descriptor() ([]byte, []int)
- func (m *QueryEgressResponse) GetEgress() *Egress
- func (m *QueryEgressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEgressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEgressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEgressResponse) ProtoMessage()
- func (m *QueryEgressResponse) Reset()
- func (m *QueryEgressResponse) Size() (n int)
- func (m *QueryEgressResponse) String() string
- func (m *QueryEgressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEgressResponse) XXX_DiscardUnknown()
- func (m *QueryEgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEgressResponse) XXX_Merge(src proto.Message)
- func (m *QueryEgressResponse) XXX_Size() int
- func (m *QueryEgressResponse) XXX_Unmarshal(b []byte) error
- type QueryMailboxRequest
- func (*QueryMailboxRequest) Descriptor() ([]byte, []int)
- func (m *QueryMailboxRequest) GetPeer() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryMailboxRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMailboxRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMailboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMailboxRequest) ProtoMessage()
- func (m *QueryMailboxRequest) Reset()
- func (m *QueryMailboxRequest) Size() (n int)
- func (m *QueryMailboxRequest) String() string
- func (m *QueryMailboxRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMailboxRequest) XXX_DiscardUnknown()
- func (m *QueryMailboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMailboxRequest) XXX_Merge(src proto.Message)
- func (m *QueryMailboxRequest) XXX_Size() int
- func (m *QueryMailboxRequest) XXX_Unmarshal(b []byte) error
- type QueryMailboxResponse
- func (*QueryMailboxResponse) Descriptor() ([]byte, []int)
- func (m *QueryMailboxResponse) GetValue() string
- func (m *QueryMailboxResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMailboxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMailboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMailboxResponse) ProtoMessage()
- func (m *QueryMailboxResponse) Reset()
- func (m *QueryMailboxResponse) Size() (n int)
- func (m *QueryMailboxResponse) String() string
- func (m *QueryMailboxResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMailboxResponse) XXX_DiscardUnknown()
- func (m *QueryMailboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMailboxResponse) XXX_Merge(src proto.Message)
- func (m *QueryMailboxResponse) XXX_Size() int
- func (m *QueryMailboxResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueueSize
- func (*QueueSize) Descriptor() ([]byte, []int)
- func (this *QueueSize) Equal(that interface{}) bool
- func (m *QueueSize) GetKey() string
- func (m *QueueSize) GetSize_() int32
- func (m *QueueSize) Marshal() (dAtA []byte, err error)
- func (m *QueueSize) MarshalTo(dAtA []byte) (int, error)
- func (m *QueueSize) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueueSize) ProtoMessage()
- func (m *QueueSize) Reset()
- func (m *QueueSize) Size() (n int)
- func (m *QueueSize) String() string
- func (m *QueueSize) Unmarshal(dAtA []byte) error
- func (m *QueueSize) XXX_DiscardUnknown()
- func (m *QueueSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueueSize) XXX_Merge(src proto.Message)
- func (m *QueueSize) XXX_Size() int
- func (m *QueueSize) XXX_Unmarshal(b []byte) error
- type SmartWalletState
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetQueueAllowed() []QueueSize
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
- type StringBeans
- func (*StringBeans) Descriptor() ([]byte, []int)
- func (this *StringBeans) Equal(that interface{}) bool
- func (m *StringBeans) GetKey() string
- func (m *StringBeans) Marshal() (dAtA []byte, err error)
- func (m *StringBeans) MarshalTo(dAtA []byte) (int, error)
- func (m *StringBeans) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StringBeans) ProtoMessage()
- func (m *StringBeans) Reset()
- func (m *StringBeans) Size() (n int)
- func (m *StringBeans) String() string
- func (m *StringBeans) Unmarshal(dAtA []byte) error
- func (m *StringBeans) XXX_DiscardUnknown()
- func (m *StringBeans) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringBeans) XXX_Merge(src proto.Message)
- func (m *StringBeans) XXX_Size() int
- func (m *StringBeans) XXX_Unmarshal(b []byte) error
- type SwingSetKeeper
- type SwingStoreArtifact
- func (*SwingStoreArtifact) Descriptor() ([]byte, []int)
- func (m *SwingStoreArtifact) GetData() []byte
- func (m *SwingStoreArtifact) GetName() string
- func (m *SwingStoreArtifact) Marshal() (dAtA []byte, err error)
- func (m *SwingStoreArtifact) MarshalTo(dAtA []byte) (int, error)
- func (m *SwingStoreArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwingStoreArtifact) ProtoMessage()
- func (m *SwingStoreArtifact) Reset()
- func (m *SwingStoreArtifact) Size() (n int)
- func (m *SwingStoreArtifact) String() string
- func (m *SwingStoreArtifact) Unmarshal(dAtA []byte) error
- func (m *SwingStoreArtifact) XXX_DiscardUnknown()
- func (m *SwingStoreArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwingStoreArtifact) XXX_Merge(src proto.Message)
- func (m *SwingStoreArtifact) XXX_Size() int
- func (m *SwingStoreArtifact) XXX_Unmarshal(b []byte) error
- type SwingStoreExportDataEntry
- func (*SwingStoreExportDataEntry) Descriptor() ([]byte, []int)
- func (m *SwingStoreExportDataEntry) GetKey() string
- func (m *SwingStoreExportDataEntry) GetValue() string
- func (m *SwingStoreExportDataEntry) Marshal() (dAtA []byte, err error)
- func (m *SwingStoreExportDataEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *SwingStoreExportDataEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwingStoreExportDataEntry) ProtoMessage()
- func (m *SwingStoreExportDataEntry) Reset()
- func (m *SwingStoreExportDataEntry) Size() (n int)
- func (m *SwingStoreExportDataEntry) String() string
- func (m *SwingStoreExportDataEntry) Unmarshal(dAtA []byte) error
- func (m *SwingStoreExportDataEntry) XXX_DiscardUnknown()
- func (m *SwingStoreExportDataEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwingStoreExportDataEntry) XXX_Merge(src proto.Message)
- func (m *SwingStoreExportDataEntry) XXX_Size() int
- func (m *SwingStoreExportDataEntry) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) DeliverInbound(ctx context.Context, req *MsgDeliverInbound) (*MsgDeliverInboundResponse, error)
- func (*UnimplementedMsgServer) InstallBundle(ctx context.Context, req *MsgInstallBundle) (*MsgInstallBundleResponse, error)
- func (*UnimplementedMsgServer) Provision(ctx context.Context, req *MsgProvision) (*MsgProvisionResponse, error)
- func (*UnimplementedMsgServer) WalletAction(ctx context.Context, req *MsgWalletAction) (*MsgWalletActionResponse, error)
- func (*UnimplementedMsgServer) WalletSpendAction(ctx context.Context, req *MsgWalletSpendAction) (*MsgWalletSpendActionResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Egress(ctx context.Context, req *QueryEgressRequest) (*QueryEgressResponse, error)
- func (*UnimplementedQueryServer) Mailbox(ctx context.Context, req *QueryMailboxRequest) (*QueryMailboxResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( BeansPerFeeUnit = "feeUnit" BeansPerInboundTx = "inboundTx" BeansPerBlockComputeLimit = "blockComputeLimit" BeansPerMessage = "message" BeansPerMessageByte = "messageByte" BeansPerMinFeeDebit = "minFeeDebit" BeansPerStorageByte = "storageByte" BeansPerVatCreation = "vatCreation" BeansPerXsnapComputron = "xsnapComputron" BeansPerSmartWalletProvision = "smartWalletProvision" // QueueSize keys. // Keep up-to-date with updateQueueAllowed() in packanges/cosmic-swingset/src/launch-chain.js QueueInbound = "inbound" QueueInboundMempool = "inbound_mempool" // PowerFlags. PowerFlagSmartWallet = "SMART_WALLET" )
const ( // module name ModuleName = "swingset" // StoreKey to be used when creating the KVStore StoreKey = ModuleName )
const EmptyMailboxValue = `"{\"outbox\":[], \"ack\":0}"`
const (
// ProposalTypeCoreEval defines the type for a CoreEvalProposal
ProposalTypeCoreEval = "CoreEval"
)
const RouterKey = ModuleName // this was defined in your key.go file
Variables ¶
var ( DefaultBeansPerXsnapComputron = sdk.NewUint(100) // DefaultBeansPerBlockComputeLimit is how many computron beans we allow // before starting a new block. Some analysis (#3459) suggests this leads to // about 2/3rds utilization, based on 5 sec voting time and up to 10 sec of // computation. DefaultBeansPerBlockComputeLimit = sdk.NewUint(8000000).Mul(DefaultBeansPerXsnapComputron) // observed: 0.385 sec DefaultBeansPerVatCreation = sdk.NewUint(300000).Mul(DefaultBeansPerXsnapComputron) // Fees are denominated in this unit. DefaultFeeUnitPrice = sdk.NewCoins(sdk.NewInt64Coin("uist", 1_000_000)) // $1 // TODO: create the cost model we want, and update these to be more principled. // These defaults currently make deploying an ag-solo cost less than $1.00. DefaultBeansPerFeeUnit = sdk.NewUint(1_000_000_000_000) // $1 DefaultBeansPerInboundTx = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(100)) // $0.01 DefaultBeansPerMessage = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(1_000)) // $0.001 DefaultBeansPerMessageByte = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(50_000)) // $0.00002 DefaultBeansPerMinFeeDebit = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(5)) // $0.2 DefaultBeansPerStorageByte = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(500)) // $0.002 DefaultBeansPerSmartWalletProvision = DefaultBeansPerFeeUnit // $1 DefaultBootstrapVatConfig = "@agoric/vm-config/decentral-core-config.json" DefaultPowerFlagFees = []PowerFlagFee{ NewPowerFlagFee(PowerFlagSmartWallet, sdk.NewCoins(sdk.NewInt64Coin("ubld", 10_000_000))), } DefaultInboundQueueMax = int32(1_000) DefaultQueueMax = []QueueSize{ NewQueueSize(QueueInbound, DefaultInboundQueueMax), } )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMsgs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsgs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group") )
var ( ParamStoreKeyBeansPerUnit = []byte("beans_per_unit") ParamStoreKeyBootstrapVatConfig = []byte("bootstrap_vat_config") ParamStoreKeyFeeUnitPrice = []byte("fee_unit_price") ParamStoreKeyPowerFlagFees = []byte("power_flag_fees") ParamStoreKeyQueueMax = []byte("queue_max") )
Parameter keys
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSwingset = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSwingset = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSwingset = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/swingset module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/swingset and // defined at the application level. ModuleAminoCdc = codec.NewAminoCodec(amino) )
Functions ¶
func Nat ¶
Nat is analogous to @endo/nat https://github.com/endojs/endo/blob/master/packages/nat
func NewCoreEvalProposal ¶
func NewCoreEvalProposal(title, description string, evals []CoreEval) govv1beta1.Content
NewCoreEvalProposal creates a new core eval proposal.
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
RegisterCodec registers concrete types on the Amino codec
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/swingset interfaces types with the interface registry
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type CoreEval ¶
type CoreEval struct { // Grant these JSON-stringified core bootstrap permits to the jsCode, as the // `powers` endowment. JsonPermits string `protobuf:"bytes,1,opt,name=json_permits,json=jsonPermits,proto3" json:"json_permits,omitempty" yaml:"json_permits"` // Evaluate this JavaScript code in a Compartment endowed with `powers` as // well as some powerless helpers. JsCode string `protobuf:"bytes,2,opt,name=js_code,json=jsCode,proto3" json:"js_code,omitempty" yaml:"js_code"` }
CoreEval defines an individual SwingSet core evaluation, for use in CoreEvalProposal.
func (*CoreEval) Descriptor ¶
func (*CoreEval) GetJsonPermits ¶
func (*CoreEval) MarshalToSizedBuffer ¶
func (*CoreEval) ProtoMessage ¶
func (*CoreEval) ProtoMessage()
func (CoreEval) ValidateBasic ¶
ValidateBasic runs basic stateless validity checks
func (*CoreEval) XXX_DiscardUnknown ¶
func (m *CoreEval) XXX_DiscardUnknown()
func (*CoreEval) XXX_Marshal ¶
func (*CoreEval) XXX_Unmarshal ¶
type CoreEvalProposal ¶
type CoreEvalProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Although evals are sequential, they may run concurrently, since they each // can return a Promise. Evals []CoreEval `protobuf:"bytes,3,rep,name=evals,proto3" json:"evals"` }
CoreEvalProposal is a gov Content type for evaluating code in the SwingSet core. See `bridgeCoreEval` in agoric-sdk packages/vats/src/core/chain-behaviors.js.
func (*CoreEvalProposal) Descriptor ¶
func (*CoreEvalProposal) Descriptor() ([]byte, []int)
func (*CoreEvalProposal) GetDescription ¶
func (cep *CoreEvalProposal) GetDescription() string
GetDescription returns the description of a client update proposal.
func (*CoreEvalProposal) GetTitle ¶
func (cep *CoreEvalProposal) GetTitle() string
GetTitle returns the title of a client update proposal.
func (*CoreEvalProposal) Marshal ¶
func (m *CoreEvalProposal) Marshal() (dAtA []byte, err error)
func (*CoreEvalProposal) MarshalToSizedBuffer ¶
func (m *CoreEvalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CoreEvalProposal) ProposalRoute ¶
func (cep *CoreEvalProposal) ProposalRoute() string
ProposalRoute returns the routing key of a client update proposal.
func (*CoreEvalProposal) ProposalType ¶
func (cep *CoreEvalProposal) ProposalType() string
ProposalType returns the type of a client update proposal.
func (*CoreEvalProposal) ProtoMessage ¶
func (*CoreEvalProposal) ProtoMessage()
func (*CoreEvalProposal) Reset ¶
func (m *CoreEvalProposal) Reset()
func (*CoreEvalProposal) Size ¶
func (m *CoreEvalProposal) Size() (n int)
func (*CoreEvalProposal) String ¶
func (m *CoreEvalProposal) String() string
func (*CoreEvalProposal) Unmarshal ¶
func (m *CoreEvalProposal) Unmarshal(dAtA []byte) error
func (*CoreEvalProposal) ValidateBasic ¶
func (cep *CoreEvalProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*CoreEvalProposal) XXX_DiscardUnknown ¶
func (m *CoreEvalProposal) XXX_DiscardUnknown()
func (*CoreEvalProposal) XXX_Marshal ¶
func (m *CoreEvalProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CoreEvalProposal) XXX_Merge ¶
func (m *CoreEvalProposal) XXX_Merge(src proto.Message)
func (*CoreEvalProposal) XXX_Size ¶
func (m *CoreEvalProposal) XXX_Size() int
func (*CoreEvalProposal) XXX_Unmarshal ¶
func (m *CoreEvalProposal) XXX_Unmarshal(b []byte) error
type Egress ¶
type Egress struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname" yaml:"nickname"` Peer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=peer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"peer" yaml:"peer"` // TODO: Remove these power flags as they are deprecated and have no effect. PowerFlags []string `protobuf:"bytes,3,rep,name=power_flags,json=powerFlags,proto3" json:"powerFlags" yaml:"powerFlags"` }
Egress is the format for a swingset egress.
func (*Egress) Descriptor ¶
func (*Egress) GetNickname ¶
func (*Egress) GetPeer ¶
func (m *Egress) GetPeer() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Egress) GetPowerFlags ¶
func (*Egress) MarshalToSizedBuffer ¶
func (*Egress) ProtoMessage ¶
func (*Egress) ProtoMessage()
func (*Egress) XXX_DiscardUnknown ¶
func (m *Egress) XXX_DiscardUnknown()
func (*Egress) XXX_Marshal ¶
func (*Egress) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` State State `protobuf:"bytes,3,opt,name=state,proto3" json:"state"` SwingStoreExportData []*SwingStoreExportDataEntry `protobuf:"bytes,4,rep,name=swing_store_export_data,json=swingStoreExportData,proto3" json:"swingStoreExportData"` }
The initial or exported state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetState ¶
func (m *GenesisState) GetState() State
func (*GenesisState) GetSwingStoreExportData ¶
func (m *GenesisState) GetSwingStoreExportData() []*SwingStoreExportDataEntry
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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) 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 Messages ¶
func UnmarshalMessagesJSON ¶
UnmarshalMessagesJSON decodes Messages from JSON text. Input must represent an array in which the first element is an array of [messageNum: integer, messageBody: string] pairs and the second element is an "Ack" integer.
type MsgClient ¶
type MsgClient interface { // Install a JavaScript sources bundle on the chain's SwingSet controller. InstallBundle(ctx context.Context, in *MsgInstallBundle, opts ...grpc.CallOption) (*MsgInstallBundleResponse, error) // Send inbound messages. DeliverInbound(ctx context.Context, in *MsgDeliverInbound, opts ...grpc.CallOption) (*MsgDeliverInboundResponse, error) // Perform a low-privilege wallet action. WalletAction(ctx context.Context, in *MsgWalletAction, opts ...grpc.CallOption) (*MsgWalletActionResponse, error) // Perform a wallet action that spends assets. WalletSpendAction(ctx context.Context, in *MsgWalletSpendAction, opts ...grpc.CallOption) (*MsgWalletSpendActionResponse, error) // Provision a new endpoint. Provision(ctx context.Context, in *MsgProvision, opts ...grpc.CallOption) (*MsgProvisionResponse, 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 MsgDeliverInbound ¶
type MsgDeliverInbound struct { Messages []string `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages" yaml:"messages"` Nums []uint64 `protobuf:"varint,2,rep,packed,name=nums,proto3" json:"nums" yaml:"nums"` Ack uint64 `protobuf:"varint,3,opt,name=ack,proto3" json:"ack" yaml:"ack"` Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 133-byte string literal not displayed */ }
MsgDeliverInbound defines an SDK message for delivering an eventual send
func NewMsgDeliverInbound ¶
func NewMsgDeliverInbound(msgs *Messages, submitter sdk.AccAddress) *MsgDeliverInbound
func (MsgDeliverInbound) CheckAdmissibility ¶
func (msg MsgDeliverInbound) CheckAdmissibility(ctx sdk.Context, data interface{}) error
CheckAdmissibility implements the vm.ControllerAdmissionMsg interface.
func (*MsgDeliverInbound) Descriptor ¶
func (*MsgDeliverInbound) Descriptor() ([]byte, []int)
func (*MsgDeliverInbound) GetAck ¶
func (m *MsgDeliverInbound) GetAck() uint64
func (MsgDeliverInbound) GetInboundMsgCount ¶
func (msg MsgDeliverInbound) GetInboundMsgCount() int32
GetInboundMsgCount implements InboundMsgCarrier.
func (*MsgDeliverInbound) GetMessages ¶
func (m *MsgDeliverInbound) GetMessages() []string
func (*MsgDeliverInbound) GetNums ¶
func (m *MsgDeliverInbound) GetNums() []uint64
func (MsgDeliverInbound) GetSignBytes ¶
func (msg MsgDeliverInbound) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDeliverInbound) GetSigners ¶
func (msg MsgDeliverInbound) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgDeliverInbound) GetSubmitter ¶
func (m *MsgDeliverInbound) GetSubmitter() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgDeliverInbound) IsHighPriority ¶
func (msg MsgDeliverInbound) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
IsHighPriority implements the vm.ControllerAdmissionMsg interface.
func (*MsgDeliverInbound) Marshal ¶
func (m *MsgDeliverInbound) Marshal() (dAtA []byte, err error)
func (*MsgDeliverInbound) MarshalTo ¶
func (m *MsgDeliverInbound) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeliverInbound) MarshalToSizedBuffer ¶
func (m *MsgDeliverInbound) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeliverInbound) ProtoMessage ¶
func (*MsgDeliverInbound) ProtoMessage()
func (*MsgDeliverInbound) Reset ¶
func (m *MsgDeliverInbound) Reset()
func (MsgDeliverInbound) Route ¶
func (msg MsgDeliverInbound) Route() string
Route should return the name of the module
func (*MsgDeliverInbound) Size ¶
func (m *MsgDeliverInbound) Size() (n int)
func (*MsgDeliverInbound) String ¶
func (m *MsgDeliverInbound) String() string
func (MsgDeliverInbound) Type ¶
func (msg MsgDeliverInbound) Type() string
Type should return the action
func (*MsgDeliverInbound) Unmarshal ¶
func (m *MsgDeliverInbound) Unmarshal(dAtA []byte) error
func (MsgDeliverInbound) ValidateBasic ¶
func (msg MsgDeliverInbound) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgDeliverInbound) XXX_DiscardUnknown ¶
func (m *MsgDeliverInbound) XXX_DiscardUnknown()
func (*MsgDeliverInbound) XXX_Marshal ¶
func (m *MsgDeliverInbound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeliverInbound) XXX_Merge ¶
func (m *MsgDeliverInbound) XXX_Merge(src proto.Message)
func (*MsgDeliverInbound) XXX_Size ¶
func (m *MsgDeliverInbound) XXX_Size() int
func (*MsgDeliverInbound) XXX_Unmarshal ¶
func (m *MsgDeliverInbound) XXX_Unmarshal(b []byte) error
type MsgDeliverInboundResponse ¶
type MsgDeliverInboundResponse struct { }
MsgDeliverInboundResponse is an empty reply.
func (*MsgDeliverInboundResponse) Descriptor ¶
func (*MsgDeliverInboundResponse) Descriptor() ([]byte, []int)
func (*MsgDeliverInboundResponse) Marshal ¶
func (m *MsgDeliverInboundResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeliverInboundResponse) MarshalTo ¶
func (m *MsgDeliverInboundResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeliverInboundResponse) MarshalToSizedBuffer ¶
func (m *MsgDeliverInboundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeliverInboundResponse) ProtoMessage ¶
func (*MsgDeliverInboundResponse) ProtoMessage()
func (*MsgDeliverInboundResponse) Reset ¶
func (m *MsgDeliverInboundResponse) Reset()
func (*MsgDeliverInboundResponse) Size ¶
func (m *MsgDeliverInboundResponse) Size() (n int)
func (*MsgDeliverInboundResponse) String ¶
func (m *MsgDeliverInboundResponse) String() string
func (*MsgDeliverInboundResponse) Unmarshal ¶
func (m *MsgDeliverInboundResponse) Unmarshal(dAtA []byte) error
func (*MsgDeliverInboundResponse) XXX_DiscardUnknown ¶
func (m *MsgDeliverInboundResponse) XXX_DiscardUnknown()
func (*MsgDeliverInboundResponse) XXX_Marshal ¶
func (m *MsgDeliverInboundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeliverInboundResponse) XXX_Merge ¶
func (m *MsgDeliverInboundResponse) XXX_Merge(src proto.Message)
func (*MsgDeliverInboundResponse) XXX_Size ¶
func (m *MsgDeliverInboundResponse) XXX_Size() int
func (*MsgDeliverInboundResponse) XXX_Unmarshal ¶
func (m *MsgDeliverInboundResponse) XXX_Unmarshal(b []byte) error
type MsgInstallBundle ¶
type MsgInstallBundle struct { Bundle string `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle" yaml:"bundle"` Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 133-byte string literal not displayed */ // Either bundle or compressed_bundle will be set. // Default compression algorithm is gzip. CompressedBundle []byte `protobuf:"bytes,3,opt,name=compressed_bundle,json=compressedBundle,proto3" json:"compressedBundle" yaml:"compressedBundle"` // Size in bytes of uncompression of compressed_bundle. UncompressedSize int64 `protobuf:"varint,4,opt,name=uncompressed_size,json=uncompressedSize,proto3" json:"uncompressedSize"` }
MsgInstallBundle carries a signed bundle to SwingSet.
func NewMsgInstallBundle ¶
func NewMsgInstallBundle(bundleJson string, submitter sdk.AccAddress) *MsgInstallBundle
func (MsgInstallBundle) CheckAdmissibility ¶
func (msg MsgInstallBundle) CheckAdmissibility(ctx sdk.Context, data interface{}) error
CheckAdmissibility implements the vm.ControllerAdmissionMsg interface.
func (*MsgInstallBundle) Compress ¶
func (msg *MsgInstallBundle) Compress() error
Compress ensures that a validated bundle has been gzip-compressed.
func (*MsgInstallBundle) Descriptor ¶
func (*MsgInstallBundle) Descriptor() ([]byte, []int)
func (MsgInstallBundle) ExpectedUncompressedSize ¶
func (msg MsgInstallBundle) ExpectedUncompressedSize() uint64
ExpectedUncompressedSize returns the expected uncompressed size of the bundle.
func (*MsgInstallBundle) GetBundle ¶
func (m *MsgInstallBundle) GetBundle() string
func (*MsgInstallBundle) GetCompressedBundle ¶
func (m *MsgInstallBundle) GetCompressedBundle() []byte
func (MsgInstallBundle) GetInboundMsgCount ¶
func (msg MsgInstallBundle) GetInboundMsgCount() int32
GetInboundMsgCount implements InboundMsgCarrier.
func (MsgInstallBundle) GetSigners ¶
func (msg MsgInstallBundle) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgInstallBundle) GetSubmitter ¶
func (m *MsgInstallBundle) GetSubmitter() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*MsgInstallBundle) GetUncompressedSize ¶
func (m *MsgInstallBundle) GetUncompressedSize() int64
func (MsgInstallBundle) IsHighPriority ¶
func (msg MsgInstallBundle) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
IsHighPriority implements the vm.ControllerAdmissionMsg interface.
func (*MsgInstallBundle) Marshal ¶
func (m *MsgInstallBundle) Marshal() (dAtA []byte, err error)
func (*MsgInstallBundle) MarshalToSizedBuffer ¶
func (m *MsgInstallBundle) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstallBundle) ProtoMessage ¶
func (*MsgInstallBundle) ProtoMessage()
func (*MsgInstallBundle) Reset ¶
func (m *MsgInstallBundle) Reset()
func (MsgInstallBundle) Route ¶
func (msg MsgInstallBundle) Route() string
Route should return the name of the module
func (*MsgInstallBundle) Size ¶
func (m *MsgInstallBundle) Size() (n int)
func (*MsgInstallBundle) String ¶
func (m *MsgInstallBundle) String() string
func (MsgInstallBundle) Type ¶
func (msg MsgInstallBundle) Type() string
Type should return the action
func (*MsgInstallBundle) Uncompress ¶
func (msg *MsgInstallBundle) Uncompress() error
Uncompress ensures that a validated bundle is uncompressed, gzip-uncompressing it if necessary. Returns an error (and ends uncompression early) if the uncompressed size does not match the expected uncompressed size. The successor of the uncompressed size must not overflow.
func (*MsgInstallBundle) Unmarshal ¶
func (m *MsgInstallBundle) Unmarshal(dAtA []byte) error
func (MsgInstallBundle) ValidateBasic ¶
func (msg MsgInstallBundle) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgInstallBundle) XXX_DiscardUnknown ¶
func (m *MsgInstallBundle) XXX_DiscardUnknown()
func (*MsgInstallBundle) XXX_Marshal ¶
func (m *MsgInstallBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstallBundle) XXX_Merge ¶
func (m *MsgInstallBundle) XXX_Merge(src proto.Message)
func (*MsgInstallBundle) XXX_Size ¶
func (m *MsgInstallBundle) XXX_Size() int
func (*MsgInstallBundle) XXX_Unmarshal ¶
func (m *MsgInstallBundle) XXX_Unmarshal(b []byte) error
type MsgInstallBundleResponse ¶
type MsgInstallBundleResponse struct { }
MsgInstallBundleResponse is an empty acknowledgement that an install bundle message has been queued for the SwingSet kernel's consideration.
func (*MsgInstallBundleResponse) Descriptor ¶
func (*MsgInstallBundleResponse) Descriptor() ([]byte, []int)
func (*MsgInstallBundleResponse) Marshal ¶
func (m *MsgInstallBundleResponse) Marshal() (dAtA []byte, err error)
func (*MsgInstallBundleResponse) MarshalTo ¶
func (m *MsgInstallBundleResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgInstallBundleResponse) MarshalToSizedBuffer ¶
func (m *MsgInstallBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstallBundleResponse) ProtoMessage ¶
func (*MsgInstallBundleResponse) ProtoMessage()
func (*MsgInstallBundleResponse) Reset ¶
func (m *MsgInstallBundleResponse) Reset()
func (*MsgInstallBundleResponse) Size ¶
func (m *MsgInstallBundleResponse) Size() (n int)
func (*MsgInstallBundleResponse) String ¶
func (m *MsgInstallBundleResponse) String() string
func (*MsgInstallBundleResponse) Unmarshal ¶
func (m *MsgInstallBundleResponse) Unmarshal(dAtA []byte) error
func (*MsgInstallBundleResponse) XXX_DiscardUnknown ¶
func (m *MsgInstallBundleResponse) XXX_DiscardUnknown()
func (*MsgInstallBundleResponse) XXX_Marshal ¶
func (m *MsgInstallBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstallBundleResponse) XXX_Merge ¶
func (m *MsgInstallBundleResponse) XXX_Merge(src proto.Message)
func (*MsgInstallBundleResponse) XXX_Size ¶
func (m *MsgInstallBundleResponse) XXX_Size() int
func (*MsgInstallBundleResponse) XXX_Unmarshal ¶
func (m *MsgInstallBundleResponse) XXX_Unmarshal(b []byte) error
type MsgProvision ¶
type MsgProvision struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname" yaml:"nickname"` Address github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 127-byte string literal not displayed */ PowerFlags []string `protobuf:"bytes,3,rep,name=power_flags,json=powerFlags,proto3" json:"powerFlags" yaml:"powerFlags"` Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 133-byte string literal not displayed */ }
MsgProvision defines an SDK message for provisioning a client to the chain
func NewMsgProvision ¶
func NewMsgProvision(nickname string, addr sdk.AccAddress, powerFlags []string, submitter sdk.AccAddress) *MsgProvision
func (MsgProvision) CheckAdmissibility ¶
func (msg MsgProvision) CheckAdmissibility(ctx sdk.Context, data interface{}) error
CheckAdmissibility implements the vm.ControllerAdmissionMsg interface.
func (*MsgProvision) Descriptor ¶
func (*MsgProvision) Descriptor() ([]byte, []int)
func (*MsgProvision) GetAddress ¶
func (m *MsgProvision) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgProvision) GetInboundMsgCount ¶
func (msg MsgProvision) GetInboundMsgCount() int32
GetInboundMsgCount implements InboundMsgCarrier.
func (*MsgProvision) GetNickname ¶
func (m *MsgProvision) GetNickname() string
func (*MsgProvision) GetPowerFlags ¶
func (m *MsgProvision) GetPowerFlags() []string
func (MsgProvision) GetSignBytes ¶
func (msg MsgProvision) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgProvision) GetSigners ¶
func (msg MsgProvision) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgProvision) GetSubmitter ¶
func (m *MsgProvision) GetSubmitter() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgProvision) IsHighPriority ¶
func (msg MsgProvision) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
IsHighPriority implements the vm.ControllerAdmissionMsg interface.
func (*MsgProvision) Marshal ¶
func (m *MsgProvision) Marshal() (dAtA []byte, err error)
func (*MsgProvision) MarshalToSizedBuffer ¶
func (m *MsgProvision) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProvision) ProtoMessage ¶
func (*MsgProvision) ProtoMessage()
func (*MsgProvision) Reset ¶
func (m *MsgProvision) Reset()
func (MsgProvision) Route ¶
func (msg MsgProvision) Route() string
Route should return the name of the module
func (*MsgProvision) Size ¶
func (m *MsgProvision) Size() (n int)
func (*MsgProvision) String ¶
func (m *MsgProvision) String() string
func (*MsgProvision) Unmarshal ¶
func (m *MsgProvision) Unmarshal(dAtA []byte) error
func (MsgProvision) ValidateBasic ¶
func (msg MsgProvision) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgProvision) XXX_DiscardUnknown ¶
func (m *MsgProvision) XXX_DiscardUnknown()
func (*MsgProvision) XXX_Marshal ¶
func (m *MsgProvision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProvision) XXX_Merge ¶
func (m *MsgProvision) XXX_Merge(src proto.Message)
func (*MsgProvision) XXX_Size ¶
func (m *MsgProvision) XXX_Size() int
func (*MsgProvision) XXX_Unmarshal ¶
func (m *MsgProvision) XXX_Unmarshal(b []byte) error
type MsgProvisionResponse ¶
type MsgProvisionResponse struct { }
MsgProvisionResponse is an empty reply.
func (*MsgProvisionResponse) Descriptor ¶
func (*MsgProvisionResponse) Descriptor() ([]byte, []int)
func (*MsgProvisionResponse) Marshal ¶
func (m *MsgProvisionResponse) Marshal() (dAtA []byte, err error)
func (*MsgProvisionResponse) MarshalTo ¶
func (m *MsgProvisionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgProvisionResponse) MarshalToSizedBuffer ¶
func (m *MsgProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProvisionResponse) ProtoMessage ¶
func (*MsgProvisionResponse) ProtoMessage()
func (*MsgProvisionResponse) Reset ¶
func (m *MsgProvisionResponse) Reset()
func (*MsgProvisionResponse) Size ¶
func (m *MsgProvisionResponse) Size() (n int)
func (*MsgProvisionResponse) String ¶
func (m *MsgProvisionResponse) String() string
func (*MsgProvisionResponse) Unmarshal ¶
func (m *MsgProvisionResponse) Unmarshal(dAtA []byte) error
func (*MsgProvisionResponse) XXX_DiscardUnknown ¶
func (m *MsgProvisionResponse) XXX_DiscardUnknown()
func (*MsgProvisionResponse) XXX_Marshal ¶
func (m *MsgProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProvisionResponse) XXX_Merge ¶
func (m *MsgProvisionResponse) XXX_Merge(src proto.Message)
func (*MsgProvisionResponse) XXX_Size ¶
func (m *MsgProvisionResponse) XXX_Size() int
func (*MsgProvisionResponse) XXX_Unmarshal ¶
func (m *MsgProvisionResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Install a JavaScript sources bundle on the chain's SwingSet controller. InstallBundle(context.Context, *MsgInstallBundle) (*MsgInstallBundleResponse, error) // Send inbound messages. DeliverInbound(context.Context, *MsgDeliverInbound) (*MsgDeliverInboundResponse, error) // Perform a low-privilege wallet action. WalletAction(context.Context, *MsgWalletAction) (*MsgWalletActionResponse, error) // Perform a wallet action that spends assets. WalletSpendAction(context.Context, *MsgWalletSpendAction) (*MsgWalletSpendActionResponse, error) // Provision a new endpoint. Provision(context.Context, *MsgProvision) (*MsgProvisionResponse, error) }
MsgServer is the server API for Msg service.
type MsgWalletAction ¶
type MsgWalletAction struct { Owner github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=owner,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"owner" yaml:"owner"` // The action to perform, as JSON-stringified marshalled data. Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` }
MsgWalletAction defines an SDK message for the on-chain wallet to perform an action that *does not* spend any assets (other than gas fees/stamps). This message type is typically protected by feegrant budgets.
func NewMsgWalletAction ¶
func NewMsgWalletAction(owner sdk.AccAddress, action string) *MsgWalletAction
func (MsgWalletAction) CheckAdmissibility ¶
func (msg MsgWalletAction) CheckAdmissibility(ctx sdk.Context, data interface{}) error
CheckAdmissibility implements the vm.ControllerAdmissionMsg interface.
func (*MsgWalletAction) Descriptor ¶
func (*MsgWalletAction) Descriptor() ([]byte, []int)
func (*MsgWalletAction) GetAction ¶
func (m *MsgWalletAction) GetAction() string
func (MsgWalletAction) GetInboundMsgCount ¶
func (msg MsgWalletAction) GetInboundMsgCount() int32
GetInboundMsgCount implements InboundMsgCarrier.
func (*MsgWalletAction) GetOwner ¶
func (m *MsgWalletAction) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgWalletAction) GetSignBytes ¶
func (msg MsgWalletAction) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgWalletAction) GetSigners ¶
func (msg MsgWalletAction) GetSigners() []sdk.AccAddress
func (MsgWalletAction) IsHighPriority ¶
func (msg MsgWalletAction) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
IsHighPriority implements the vm.ControllerAdmissionMsg interface.
func (*MsgWalletAction) Marshal ¶
func (m *MsgWalletAction) Marshal() (dAtA []byte, err error)
func (*MsgWalletAction) MarshalToSizedBuffer ¶
func (m *MsgWalletAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWalletAction) ProtoMessage ¶
func (*MsgWalletAction) ProtoMessage()
func (*MsgWalletAction) Reset ¶
func (m *MsgWalletAction) Reset()
func (MsgWalletAction) Route ¶
func (msg MsgWalletAction) Route() string
Route should return the name of the module
func (*MsgWalletAction) Size ¶
func (m *MsgWalletAction) Size() (n int)
func (*MsgWalletAction) String ¶
func (m *MsgWalletAction) String() string
func (MsgWalletAction) Type ¶
func (msg MsgWalletAction) Type() string
Type should return the action
func (*MsgWalletAction) Unmarshal ¶
func (m *MsgWalletAction) Unmarshal(dAtA []byte) error
func (MsgWalletAction) ValidateBasic ¶
func (msg MsgWalletAction) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgWalletAction) XXX_DiscardUnknown ¶
func (m *MsgWalletAction) XXX_DiscardUnknown()
func (*MsgWalletAction) XXX_Marshal ¶
func (m *MsgWalletAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWalletAction) XXX_Merge ¶
func (m *MsgWalletAction) XXX_Merge(src proto.Message)
func (*MsgWalletAction) XXX_Size ¶
func (m *MsgWalletAction) XXX_Size() int
func (*MsgWalletAction) XXX_Unmarshal ¶
func (m *MsgWalletAction) XXX_Unmarshal(b []byte) error
type MsgWalletActionResponse ¶
type MsgWalletActionResponse struct { }
MsgWalletActionResponse is an empty reply.
func (*MsgWalletActionResponse) Descriptor ¶
func (*MsgWalletActionResponse) Descriptor() ([]byte, []int)
func (*MsgWalletActionResponse) Marshal ¶
func (m *MsgWalletActionResponse) Marshal() (dAtA []byte, err error)
func (*MsgWalletActionResponse) MarshalTo ¶
func (m *MsgWalletActionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWalletActionResponse) MarshalToSizedBuffer ¶
func (m *MsgWalletActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWalletActionResponse) ProtoMessage ¶
func (*MsgWalletActionResponse) ProtoMessage()
func (*MsgWalletActionResponse) Reset ¶
func (m *MsgWalletActionResponse) Reset()
func (*MsgWalletActionResponse) Size ¶
func (m *MsgWalletActionResponse) Size() (n int)
func (*MsgWalletActionResponse) String ¶
func (m *MsgWalletActionResponse) String() string
func (*MsgWalletActionResponse) Unmarshal ¶
func (m *MsgWalletActionResponse) Unmarshal(dAtA []byte) error
func (*MsgWalletActionResponse) XXX_DiscardUnknown ¶
func (m *MsgWalletActionResponse) XXX_DiscardUnknown()
func (*MsgWalletActionResponse) XXX_Marshal ¶
func (m *MsgWalletActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWalletActionResponse) XXX_Merge ¶
func (m *MsgWalletActionResponse) XXX_Merge(src proto.Message)
func (*MsgWalletActionResponse) XXX_Size ¶
func (m *MsgWalletActionResponse) XXX_Size() int
func (*MsgWalletActionResponse) XXX_Unmarshal ¶
func (m *MsgWalletActionResponse) XXX_Unmarshal(b []byte) error
type MsgWalletSpendAction ¶
type MsgWalletSpendAction struct { Owner github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=owner,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"owner" yaml:"owner"` // The action to perform, as JSON-stringified marshalled data. SpendAction string `protobuf:"bytes,2,opt,name=spend_action,json=spendAction,proto3" json:"spend_action,omitempty"` }
MsgWalletSpendAction defines an SDK message for the on-chain wallet to perform an action that *does spend the owner's assets.* This message type is typically protected by explicit confirmation by the user.
func NewMsgWalletSpendAction ¶
func NewMsgWalletSpendAction(owner sdk.AccAddress, spendAction string) *MsgWalletSpendAction
func (MsgWalletSpendAction) CheckAdmissibility ¶
func (msg MsgWalletSpendAction) CheckAdmissibility(ctx sdk.Context, data interface{}) error
CheckAdmissibility implements the vm.ControllerAdmissionMsg interface.
func (*MsgWalletSpendAction) Descriptor ¶
func (*MsgWalletSpendAction) Descriptor() ([]byte, []int)
func (MsgWalletSpendAction) GetInboundMsgCount ¶
func (msg MsgWalletSpendAction) GetInboundMsgCount() int32
GetInboundMsgCount implements InboundMsgCarrier.
func (*MsgWalletSpendAction) GetOwner ¶
func (m *MsgWalletSpendAction) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgWalletSpendAction) GetSignBytes ¶
func (msg MsgWalletSpendAction) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgWalletSpendAction) GetSigners ¶
func (msg MsgWalletSpendAction) GetSigners() []sdk.AccAddress
func (*MsgWalletSpendAction) GetSpendAction ¶
func (m *MsgWalletSpendAction) GetSpendAction() string
func (MsgWalletSpendAction) IsHighPriority ¶
func (msg MsgWalletSpendAction) IsHighPriority(ctx sdk.Context, data interface{}) (bool, error)
IsHighPriority implements the vm.ControllerAdmissionMsg interface.
func (*MsgWalletSpendAction) Marshal ¶
func (m *MsgWalletSpendAction) Marshal() (dAtA []byte, err error)
func (*MsgWalletSpendAction) MarshalTo ¶
func (m *MsgWalletSpendAction) MarshalTo(dAtA []byte) (int, error)
func (*MsgWalletSpendAction) MarshalToSizedBuffer ¶
func (m *MsgWalletSpendAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWalletSpendAction) ProtoMessage ¶
func (*MsgWalletSpendAction) ProtoMessage()
func (*MsgWalletSpendAction) Reset ¶
func (m *MsgWalletSpendAction) Reset()
func (MsgWalletSpendAction) Route ¶
func (msg MsgWalletSpendAction) Route() string
Route should return the name of the module
func (*MsgWalletSpendAction) Size ¶
func (m *MsgWalletSpendAction) Size() (n int)
func (*MsgWalletSpendAction) String ¶
func (m *MsgWalletSpendAction) String() string
func (MsgWalletSpendAction) Type ¶
func (msg MsgWalletSpendAction) Type() string
Type should return the action
func (*MsgWalletSpendAction) Unmarshal ¶
func (m *MsgWalletSpendAction) Unmarshal(dAtA []byte) error
func (MsgWalletSpendAction) ValidateBasic ¶
func (msg MsgWalletSpendAction) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgWalletSpendAction) XXX_DiscardUnknown ¶
func (m *MsgWalletSpendAction) XXX_DiscardUnknown()
func (*MsgWalletSpendAction) XXX_Marshal ¶
func (m *MsgWalletSpendAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWalletSpendAction) XXX_Merge ¶
func (m *MsgWalletSpendAction) XXX_Merge(src proto.Message)
func (*MsgWalletSpendAction) XXX_Size ¶
func (m *MsgWalletSpendAction) XXX_Size() int
func (*MsgWalletSpendAction) XXX_Unmarshal ¶
func (m *MsgWalletSpendAction) XXX_Unmarshal(b []byte) error
type MsgWalletSpendActionResponse ¶
type MsgWalletSpendActionResponse struct { }
MsgWalletSpendActionResponse is an empty reply.
func (*MsgWalletSpendActionResponse) Descriptor ¶
func (*MsgWalletSpendActionResponse) Descriptor() ([]byte, []int)
func (*MsgWalletSpendActionResponse) Marshal ¶
func (m *MsgWalletSpendActionResponse) Marshal() (dAtA []byte, err error)
func (*MsgWalletSpendActionResponse) MarshalTo ¶
func (m *MsgWalletSpendActionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWalletSpendActionResponse) MarshalToSizedBuffer ¶
func (m *MsgWalletSpendActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWalletSpendActionResponse) ProtoMessage ¶
func (*MsgWalletSpendActionResponse) ProtoMessage()
func (*MsgWalletSpendActionResponse) Reset ¶
func (m *MsgWalletSpendActionResponse) Reset()
func (*MsgWalletSpendActionResponse) Size ¶
func (m *MsgWalletSpendActionResponse) Size() (n int)
func (*MsgWalletSpendActionResponse) String ¶
func (m *MsgWalletSpendActionResponse) String() string
func (*MsgWalletSpendActionResponse) Unmarshal ¶
func (m *MsgWalletSpendActionResponse) Unmarshal(dAtA []byte) error
func (*MsgWalletSpendActionResponse) XXX_DiscardUnknown ¶
func (m *MsgWalletSpendActionResponse) XXX_DiscardUnknown()
func (*MsgWalletSpendActionResponse) XXX_Marshal ¶
func (m *MsgWalletSpendActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWalletSpendActionResponse) XXX_Merge ¶
func (m *MsgWalletSpendActionResponse) XXX_Merge(src proto.Message)
func (*MsgWalletSpendActionResponse) XXX_Size ¶
func (m *MsgWalletSpendActionResponse) XXX_Size() int
func (*MsgWalletSpendActionResponse) XXX_Unmarshal ¶
func (m *MsgWalletSpendActionResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // Map from unit name to a value in SwingSet "beans". // Must not be negative. // // These values are used by SwingSet to normalize named per-resource charges // (maybe rent) in a single Nat usage unit, the "bean". // // There is no required order to this list of entries, but all the chain // nodes must all serialize and deserialize the existing order without // permuting it. BeansPerUnit []StringBeans `protobuf:"bytes,1,rep,name=beans_per_unit,json=beansPerUnit,proto3" json:"beans_per_unit"` // The price in Coins per the unit named "fee". This value is used by // cosmic-swingset JS code to decide how many tokens to charge. // // cost = beans_used * fee_unit_price / beans_per_unit["fee"] FeeUnitPrice github_com_cosmos_cosmos_sdk_types.Coins `` /* 143-byte string literal not displayed */ // The SwingSet bootstrap vat configuration file. Not usefully modifiable // via governance as it is only referenced by the chain's initial // construction. BootstrapVatConfig string `protobuf:"bytes,3,opt,name=bootstrap_vat_config,json=bootstrapVatConfig,proto3" json:"bootstrap_vat_config,omitempty"` // If the provision submitter doesn't hold a provisionpass, their requested // power flags are looked up in this fee menu (first match wins) and the sum // is charged. If any power flag is not found in this menu, the request is // rejected. PowerFlagFees []PowerFlagFee `protobuf:"bytes,4,rep,name=power_flag_fees,json=powerFlagFees,proto3" json:"power_flag_fees"` // Maximum sizes for queues. // These values are used by SwingSet to compute how many messages should be // accepted in a block. // // There is no required order to this list of entries, but all the chain // nodes must all serialize and deserialize the existing order without // permuting it. QueueMax []QueueSize `protobuf:"bytes,5,rep,name=queue_max,json=queueMax,proto3" json:"queue_max"` }
Params are the swingset configuration/governance parameters.
func UpdateParams ¶
UpdateParams appends any missing params, configuring them to their defaults, then returning the updated params or an error. Existing params are not modified, regardless of their value, and they are not removed if they no longer appear in the defaults.
func (*Params) Descriptor ¶
func (*Params) GetBeansPerUnit ¶
func (m *Params) GetBeansPerUnit() []StringBeans
func (*Params) GetBootstrapVatConfig ¶
func (*Params) GetFeeUnitPrice ¶
func (m *Params) GetFeeUnitPrice() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) GetPowerFlagFees ¶
func (m *Params) GetPowerFlagFees() []PowerFlagFee
func (*Params) GetQueueMax ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶
ValidateBasic performs basic validation on swingset parameters.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PowerFlagFee ¶
type PowerFlagFee struct { PowerFlag string `protobuf:"bytes,1,opt,name=power_flag,json=powerFlag,proto3" json:"power_flag,omitempty"` Fee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=fee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee"` }
Map a provisioning power flag to its corresponding fee.
func NewPowerFlagFee ¶
func NewPowerFlagFee(powerFlag string, fee sdk.Coins) PowerFlagFee
func (*PowerFlagFee) Descriptor ¶
func (*PowerFlagFee) Descriptor() ([]byte, []int)
func (*PowerFlagFee) Equal ¶
func (this *PowerFlagFee) Equal(that interface{}) bool
func (*PowerFlagFee) GetFee ¶
func (m *PowerFlagFee) GetFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*PowerFlagFee) GetPowerFlag ¶
func (m *PowerFlagFee) GetPowerFlag() string
func (*PowerFlagFee) Marshal ¶
func (m *PowerFlagFee) Marshal() (dAtA []byte, err error)
func (*PowerFlagFee) MarshalToSizedBuffer ¶
func (m *PowerFlagFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PowerFlagFee) ProtoMessage ¶
func (*PowerFlagFee) ProtoMessage()
func (*PowerFlagFee) Reset ¶
func (m *PowerFlagFee) Reset()
func (*PowerFlagFee) Size ¶
func (m *PowerFlagFee) Size() (n int)
func (*PowerFlagFee) String ¶
func (m *PowerFlagFee) String() string
func (*PowerFlagFee) Unmarshal ¶
func (m *PowerFlagFee) Unmarshal(dAtA []byte) error
func (*PowerFlagFee) XXX_DiscardUnknown ¶
func (m *PowerFlagFee) XXX_DiscardUnknown()
func (*PowerFlagFee) XXX_Marshal ¶
func (m *PowerFlagFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PowerFlagFee) XXX_Merge ¶
func (m *PowerFlagFee) XXX_Merge(src proto.Message)
func (*PowerFlagFee) XXX_Size ¶
func (m *PowerFlagFee) XXX_Size() int
func (*PowerFlagFee) XXX_Unmarshal ¶
func (m *PowerFlagFee) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries params of the swingset module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Egress queries a provisioned egress. Egress(ctx context.Context, in *QueryEgressRequest, opts ...grpc.CallOption) (*QueryEgressResponse, error) // Return the contents of a peer's outbound mailbox. Mailbox(ctx context.Context, in *QueryMailboxRequest, opts ...grpc.CallOption) (*QueryMailboxResponse, 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 ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryEgressRequest ¶
type QueryEgressRequest struct {
Peer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=peer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"peer" yaml:"peer"`
}
QueryEgressRequest is the request type for the Query/Egress RPC method
func (*QueryEgressRequest) Descriptor ¶
func (*QueryEgressRequest) Descriptor() ([]byte, []int)
func (*QueryEgressRequest) GetPeer ¶
func (m *QueryEgressRequest) GetPeer() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryEgressRequest) Marshal ¶
func (m *QueryEgressRequest) Marshal() (dAtA []byte, err error)
func (*QueryEgressRequest) MarshalTo ¶
func (m *QueryEgressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryEgressRequest) MarshalToSizedBuffer ¶
func (m *QueryEgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEgressRequest) ProtoMessage ¶
func (*QueryEgressRequest) ProtoMessage()
func (*QueryEgressRequest) Reset ¶
func (m *QueryEgressRequest) Reset()
func (*QueryEgressRequest) Size ¶
func (m *QueryEgressRequest) Size() (n int)
func (*QueryEgressRequest) String ¶
func (m *QueryEgressRequest) String() string
func (*QueryEgressRequest) Unmarshal ¶
func (m *QueryEgressRequest) Unmarshal(dAtA []byte) error
func (*QueryEgressRequest) XXX_DiscardUnknown ¶
func (m *QueryEgressRequest) XXX_DiscardUnknown()
func (*QueryEgressRequest) XXX_Marshal ¶
func (m *QueryEgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEgressRequest) XXX_Merge ¶
func (m *QueryEgressRequest) XXX_Merge(src proto.Message)
func (*QueryEgressRequest) XXX_Size ¶
func (m *QueryEgressRequest) XXX_Size() int
func (*QueryEgressRequest) XXX_Unmarshal ¶
func (m *QueryEgressRequest) XXX_Unmarshal(b []byte) error
type QueryEgressResponse ¶
type QueryEgressResponse struct {
Egress *Egress `protobuf:"bytes,1,opt,name=egress,proto3" json:"egress,omitempty"`
}
QueryEgressResponse is the egress response.
func (*QueryEgressResponse) Descriptor ¶
func (*QueryEgressResponse) Descriptor() ([]byte, []int)
func (*QueryEgressResponse) GetEgress ¶
func (m *QueryEgressResponse) GetEgress() *Egress
func (*QueryEgressResponse) Marshal ¶
func (m *QueryEgressResponse) Marshal() (dAtA []byte, err error)
func (*QueryEgressResponse) MarshalTo ¶
func (m *QueryEgressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryEgressResponse) MarshalToSizedBuffer ¶
func (m *QueryEgressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEgressResponse) ProtoMessage ¶
func (*QueryEgressResponse) ProtoMessage()
func (*QueryEgressResponse) Reset ¶
func (m *QueryEgressResponse) Reset()
func (*QueryEgressResponse) Size ¶
func (m *QueryEgressResponse) Size() (n int)
func (*QueryEgressResponse) String ¶
func (m *QueryEgressResponse) String() string
func (*QueryEgressResponse) Unmarshal ¶
func (m *QueryEgressResponse) Unmarshal(dAtA []byte) error
func (*QueryEgressResponse) XXX_DiscardUnknown ¶
func (m *QueryEgressResponse) XXX_DiscardUnknown()
func (*QueryEgressResponse) XXX_Marshal ¶
func (m *QueryEgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEgressResponse) XXX_Merge ¶
func (m *QueryEgressResponse) XXX_Merge(src proto.Message)
func (*QueryEgressResponse) XXX_Size ¶
func (m *QueryEgressResponse) XXX_Size() int
func (*QueryEgressResponse) XXX_Unmarshal ¶
func (m *QueryEgressResponse) XXX_Unmarshal(b []byte) error
type QueryMailboxRequest ¶
type QueryMailboxRequest struct {
Peer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=peer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"peer" yaml:"peer"`
}
QueryMailboxRequest is the mailbox query.
func (*QueryMailboxRequest) Descriptor ¶
func (*QueryMailboxRequest) Descriptor() ([]byte, []int)
func (*QueryMailboxRequest) GetPeer ¶
func (m *QueryMailboxRequest) GetPeer() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryMailboxRequest) Marshal ¶
func (m *QueryMailboxRequest) Marshal() (dAtA []byte, err error)
func (*QueryMailboxRequest) MarshalTo ¶
func (m *QueryMailboxRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMailboxRequest) MarshalToSizedBuffer ¶
func (m *QueryMailboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMailboxRequest) ProtoMessage ¶
func (*QueryMailboxRequest) ProtoMessage()
func (*QueryMailboxRequest) Reset ¶
func (m *QueryMailboxRequest) Reset()
func (*QueryMailboxRequest) Size ¶
func (m *QueryMailboxRequest) Size() (n int)
func (*QueryMailboxRequest) String ¶
func (m *QueryMailboxRequest) String() string
func (*QueryMailboxRequest) Unmarshal ¶
func (m *QueryMailboxRequest) Unmarshal(dAtA []byte) error
func (*QueryMailboxRequest) XXX_DiscardUnknown ¶
func (m *QueryMailboxRequest) XXX_DiscardUnknown()
func (*QueryMailboxRequest) XXX_Marshal ¶
func (m *QueryMailboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMailboxRequest) XXX_Merge ¶
func (m *QueryMailboxRequest) XXX_Merge(src proto.Message)
func (*QueryMailboxRequest) XXX_Size ¶
func (m *QueryMailboxRequest) XXX_Size() int
func (*QueryMailboxRequest) XXX_Unmarshal ¶
func (m *QueryMailboxRequest) XXX_Unmarshal(b []byte) error
type QueryMailboxResponse ¶
type QueryMailboxResponse struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value" yaml:"value"`
}
QueryMailboxResponse is the mailbox response.
func (*QueryMailboxResponse) Descriptor ¶
func (*QueryMailboxResponse) Descriptor() ([]byte, []int)
func (*QueryMailboxResponse) GetValue ¶
func (m *QueryMailboxResponse) GetValue() string
func (*QueryMailboxResponse) Marshal ¶
func (m *QueryMailboxResponse) Marshal() (dAtA []byte, err error)
func (*QueryMailboxResponse) MarshalTo ¶
func (m *QueryMailboxResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMailboxResponse) MarshalToSizedBuffer ¶
func (m *QueryMailboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMailboxResponse) ProtoMessage ¶
func (*QueryMailboxResponse) ProtoMessage()
func (*QueryMailboxResponse) Reset ¶
func (m *QueryMailboxResponse) Reset()
func (*QueryMailboxResponse) Size ¶
func (m *QueryMailboxResponse) Size() (n int)
func (*QueryMailboxResponse) String ¶
func (m *QueryMailboxResponse) String() string
func (*QueryMailboxResponse) Unmarshal ¶
func (m *QueryMailboxResponse) Unmarshal(dAtA []byte) error
func (*QueryMailboxResponse) XXX_DiscardUnknown ¶
func (m *QueryMailboxResponse) XXX_DiscardUnknown()
func (*QueryMailboxResponse) XXX_Marshal ¶
func (m *QueryMailboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMailboxResponse) XXX_Merge ¶
func (m *QueryMailboxResponse) XXX_Merge(src proto.Message)
func (*QueryMailboxResponse) XXX_Size ¶
func (m *QueryMailboxResponse) XXX_Size() int
func (*QueryMailboxResponse) XXX_Unmarshal ¶
func (m *QueryMailboxResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries params of the swingset module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Egress queries a provisioned egress. Egress(context.Context, *QueryEgressRequest) (*QueryEgressResponse, error) // Return the contents of a peer's outbound mailbox. Mailbox(context.Context, *QueryMailboxRequest) (*QueryMailboxResponse, error) }
QueryServer is the server API for Query service.
type QueueSize ¶
type QueueSize struct { // What the size is for. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The actual size value. Size_ int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` }
Map element of a string key to a size.
func NewQueueSize ¶
func (*QueueSize) Descriptor ¶
func (*QueueSize) MarshalToSizedBuffer ¶
func (*QueueSize) ProtoMessage ¶
func (*QueueSize) ProtoMessage()
func (*QueueSize) XXX_DiscardUnknown ¶
func (m *QueueSize) XXX_DiscardUnknown()
func (*QueueSize) XXX_Marshal ¶
func (*QueueSize) XXX_Unmarshal ¶
type SmartWalletState ¶
type SmartWalletState uint8
const ( SmartWalletStateUnspecified SmartWalletState = iota SmartWalletStateNone SmartWalletStatePending SmartWalletStateProvisioned )
type State ¶
type State struct { // The allowed number of items to add to queues, as determined by SwingSet. // Transactions which attempt to enqueue more should be rejected. QueueAllowed []QueueSize `protobuf:"bytes,1,rep,name=queue_allowed,json=queueAllowed,proto3" json:"queue_allowed"` }
The current state of the module.
func (*State) Descriptor ¶
func (*State) GetQueueAllowed ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
type StringBeans ¶
type StringBeans struct { // What the beans are for. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The actual bean value. Beans github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,2,opt,name=beans,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"beans"` }
Map element of a string key to a Nat bean count.
func DefaultBeansPerUnit ¶
func DefaultBeansPerUnit() []StringBeans
move DefaultBeansPerUnit to a function to allow for boot overriding of the Default params
func NewStringBeans ¶
func NewStringBeans(key string, beans sdkmath.Uint) StringBeans
func (*StringBeans) Descriptor ¶
func (*StringBeans) Descriptor() ([]byte, []int)
func (*StringBeans) Equal ¶
func (this *StringBeans) Equal(that interface{}) bool
func (*StringBeans) GetKey ¶
func (m *StringBeans) GetKey() string
func (*StringBeans) Marshal ¶
func (m *StringBeans) Marshal() (dAtA []byte, err error)
func (*StringBeans) MarshalToSizedBuffer ¶
func (m *StringBeans) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StringBeans) ProtoMessage ¶
func (*StringBeans) ProtoMessage()
func (*StringBeans) Reset ¶
func (m *StringBeans) Reset()
func (*StringBeans) Size ¶
func (m *StringBeans) Size() (n int)
func (*StringBeans) String ¶
func (m *StringBeans) String() string
func (*StringBeans) Unmarshal ¶
func (m *StringBeans) Unmarshal(dAtA []byte) error
func (*StringBeans) XXX_DiscardUnknown ¶
func (m *StringBeans) XXX_DiscardUnknown()
func (*StringBeans) XXX_Marshal ¶
func (m *StringBeans) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringBeans) XXX_Merge ¶
func (m *StringBeans) XXX_Merge(src proto.Message)
func (*StringBeans) XXX_Size ¶
func (m *StringBeans) XXX_Size() int
func (*StringBeans) XXX_Unmarshal ¶
func (m *StringBeans) XXX_Unmarshal(b []byte) error
type SwingSetKeeper ¶
type SwingSetKeeper interface { GetBeansPerUnit(ctx sdk.Context) map[string]sdkmath.Uint ChargeBeans(ctx sdk.Context, addr sdk.AccAddress, beans sdkmath.Uint) error IsHighPriorityAddress(ctx sdk.Context, addr sdk.AccAddress) (bool, error) GetSmartWalletState(ctx sdk.Context, addr sdk.AccAddress) SmartWalletState ChargeForSmartWallet(ctx sdk.Context, addr sdk.AccAddress) error }
type SwingStoreArtifact ¶
type SwingStoreArtifact struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data" yaml:"data"` }
SwingStoreArtifact encodes an artifact of a swing-store export. Artifacts may be stored or transmitted in any order. Most handlers do maintain the artifact order from their original source as an effect of how they handle the artifacts.
func (*SwingStoreArtifact) Descriptor ¶
func (*SwingStoreArtifact) Descriptor() ([]byte, []int)
func (*SwingStoreArtifact) GetData ¶
func (m *SwingStoreArtifact) GetData() []byte
func (*SwingStoreArtifact) GetName ¶
func (m *SwingStoreArtifact) GetName() string
func (*SwingStoreArtifact) Marshal ¶
func (m *SwingStoreArtifact) Marshal() (dAtA []byte, err error)
func (*SwingStoreArtifact) MarshalTo ¶
func (m *SwingStoreArtifact) MarshalTo(dAtA []byte) (int, error)
func (*SwingStoreArtifact) MarshalToSizedBuffer ¶
func (m *SwingStoreArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwingStoreArtifact) ProtoMessage ¶
func (*SwingStoreArtifact) ProtoMessage()
func (*SwingStoreArtifact) Reset ¶
func (m *SwingStoreArtifact) Reset()
func (*SwingStoreArtifact) Size ¶
func (m *SwingStoreArtifact) Size() (n int)
func (*SwingStoreArtifact) String ¶
func (m *SwingStoreArtifact) String() string
func (*SwingStoreArtifact) Unmarshal ¶
func (m *SwingStoreArtifact) Unmarshal(dAtA []byte) error
func (*SwingStoreArtifact) XXX_DiscardUnknown ¶
func (m *SwingStoreArtifact) XXX_DiscardUnknown()
func (*SwingStoreArtifact) XXX_Marshal ¶
func (m *SwingStoreArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwingStoreArtifact) XXX_Merge ¶
func (m *SwingStoreArtifact) XXX_Merge(src proto.Message)
func (*SwingStoreArtifact) XXX_Size ¶
func (m *SwingStoreArtifact) XXX_Size() int
func (*SwingStoreArtifact) XXX_Unmarshal ¶
func (m *SwingStoreArtifact) XXX_Unmarshal(b []byte) error
type SwingStoreExportDataEntry ¶
type SwingStoreExportDataEntry struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
A SwingStore "export data" entry.
func (*SwingStoreExportDataEntry) Descriptor ¶
func (*SwingStoreExportDataEntry) Descriptor() ([]byte, []int)
func (*SwingStoreExportDataEntry) GetKey ¶
func (m *SwingStoreExportDataEntry) GetKey() string
func (*SwingStoreExportDataEntry) GetValue ¶
func (m *SwingStoreExportDataEntry) GetValue() string
func (*SwingStoreExportDataEntry) Marshal ¶
func (m *SwingStoreExportDataEntry) Marshal() (dAtA []byte, err error)
func (*SwingStoreExportDataEntry) MarshalTo ¶
func (m *SwingStoreExportDataEntry) MarshalTo(dAtA []byte) (int, error)
func (*SwingStoreExportDataEntry) MarshalToSizedBuffer ¶
func (m *SwingStoreExportDataEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwingStoreExportDataEntry) ProtoMessage ¶
func (*SwingStoreExportDataEntry) ProtoMessage()
func (*SwingStoreExportDataEntry) Reset ¶
func (m *SwingStoreExportDataEntry) Reset()
func (*SwingStoreExportDataEntry) Size ¶
func (m *SwingStoreExportDataEntry) Size() (n int)
func (*SwingStoreExportDataEntry) String ¶
func (m *SwingStoreExportDataEntry) String() string
func (*SwingStoreExportDataEntry) Unmarshal ¶
func (m *SwingStoreExportDataEntry) Unmarshal(dAtA []byte) error
func (*SwingStoreExportDataEntry) XXX_DiscardUnknown ¶
func (m *SwingStoreExportDataEntry) XXX_DiscardUnknown()
func (*SwingStoreExportDataEntry) XXX_Marshal ¶
func (m *SwingStoreExportDataEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwingStoreExportDataEntry) XXX_Merge ¶
func (m *SwingStoreExportDataEntry) XXX_Merge(src proto.Message)
func (*SwingStoreExportDataEntry) XXX_Size ¶
func (m *SwingStoreExportDataEntry) XXX_Size() int
func (*SwingStoreExportDataEntry) XXX_Unmarshal ¶
func (m *SwingStoreExportDataEntry) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) DeliverInbound ¶
func (*UnimplementedMsgServer) DeliverInbound(ctx context.Context, req *MsgDeliverInbound) (*MsgDeliverInboundResponse, error)
func (*UnimplementedMsgServer) InstallBundle ¶
func (*UnimplementedMsgServer) InstallBundle(ctx context.Context, req *MsgInstallBundle) (*MsgInstallBundleResponse, error)
func (*UnimplementedMsgServer) Provision ¶
func (*UnimplementedMsgServer) Provision(ctx context.Context, req *MsgProvision) (*MsgProvisionResponse, error)
func (*UnimplementedMsgServer) WalletAction ¶
func (*UnimplementedMsgServer) WalletAction(ctx context.Context, req *MsgWalletAction) (*MsgWalletActionResponse, error)
func (*UnimplementedMsgServer) WalletSpendAction ¶
func (*UnimplementedMsgServer) WalletSpendAction(ctx context.Context, req *MsgWalletSpendAction) (*MsgWalletSpendActionResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Egress ¶
func (*UnimplementedQueryServer) Egress(ctx context.Context, req *QueryEgressRequest) (*QueryEgressResponse, error)
func (*UnimplementedQueryServer) Mailbox ¶
func (*UnimplementedQueryServer) Mailbox(ctx context.Context, req *QueryMailboxRequest) (*QueryMailboxResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)